Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. public OnPlayerConnect( playerid )
  2. {
  3. SetTimerEx("HideMainTxds", 10000, false, "i", playerid);
  4. TextDrawShowForPlayer(playerid, p_serverinfo0[playerid]);
  5. TextDrawShowForPlayer(playerid, p_serverinfo1[playerid]);
  6. TextDrawShowForPlayer(playerid, p_serverinfo2[playerid]);
  7. TextDrawShowForPlayer(playerid, p_serverinfo3[playerid]);
  8. TextDrawShowForPlayer(playerid, p_serverinfo4[playerid]);
  9. TextDrawShowForPlayer(playerid, p_serverinfo5[playerid]);
  10. TextDrawShowForPlayer(playerid, p_serverinfo6[playerid]);
  11. TogglePlayerSpectating(playerid, true);
  12. TogglePlayerClock( playerid, 1 );
  13. SetPlayerColor( playerid, COLOR_GREY );
  14. ResetPlayerCash( playerid );
  15. PlayerPlaySound( playerid, 1097, 0.0, 0.0, 0.0 );
  16. ApplyAnimation( playerid, "STRIP", "strip_G", 2.0, 1, 0, 0, 0, 0 );
  17. ApplyAnimation( playerid, "STRIP", "strip_G", 2.0, 1, 0, 0, 0, 0 );
  18.  
  19. // Reset some variables
  20. p_Spawned { playerid } = false;
  21. p_GangID [ playerid ] = INVALID_GANG_ID;
  22. justConnected { playerid } = true;
  23. p_ClassSelection { playerid } = false;
  24. p_UsingRobberySafe [ playerid ] = -1;
  25.  
  26. // reset jails
  27. jailDoors( playerid, false, false );
  28.  
  29. SendClientMessageFormatted( playerid, 0xFFFFFFFF, "{FFFFFF} Welcome to {00C0FF}Tippythop's Cops and Robbers{FFDC2E} - {00C0FF}San Fierro {FFDC2E}CnR Version %s.", GetServerVersion( ) );
  30. SendClientMessage( playerid, 0xa9c4e4ff, "{FF0000}Warning!{FFFFFF} This server (and GTA in General) Contains Explicit Material." );
  31. SendClientMessage( playerid, 0xFFFFFFFF, "Select A Skin - Press{FFDC2E} SHIFT{FFFFFF} To Spawn." );
  32.  
  33. //if ( IsValidServerVariable( "connectsong" ) )
  34. //{
  35. // GetServerVariableString( "connectsong", szNormalString );
  36. // PlayAudioStreamForPlayer( playerid, szNormalString );
  37. //}
  38. return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement