Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerConnect( playerid )
- {
- SetTimerEx("HideMainTxds", 10000, false, "i", playerid);
- TextDrawShowForPlayer(playerid, p_serverinfo0[playerid]);
- TextDrawShowForPlayer(playerid, p_serverinfo1[playerid]);
- TextDrawShowForPlayer(playerid, p_serverinfo2[playerid]);
- TextDrawShowForPlayer(playerid, p_serverinfo3[playerid]);
- TextDrawShowForPlayer(playerid, p_serverinfo4[playerid]);
- TextDrawShowForPlayer(playerid, p_serverinfo5[playerid]);
- TextDrawShowForPlayer(playerid, p_serverinfo6[playerid]);
- TogglePlayerSpectating(playerid, true);
- TogglePlayerClock( playerid, 1 );
- SetPlayerColor( playerid, COLOR_GREY );
- ResetPlayerCash( playerid );
- PlayerPlaySound( playerid, 1097, 0.0, 0.0, 0.0 );
- ApplyAnimation( playerid, "STRIP", "strip_G", 2.0, 1, 0, 0, 0, 0 );
- ApplyAnimation( playerid, "STRIP", "strip_G", 2.0, 1, 0, 0, 0, 0 );
- // Reset some variables
- p_Spawned { playerid } = false;
- p_GangID [ playerid ] = INVALID_GANG_ID;
- justConnected { playerid } = true;
- p_ClassSelection { playerid } = false;
- p_UsingRobberySafe [ playerid ] = -1;
- // reset jails
- jailDoors( playerid, false, false );
- SendClientMessageFormatted( playerid, 0xFFFFFFFF, "{FFFFFF} Welcome to {00C0FF}Tippythop's Cops and Robbers{FFDC2E} - {00C0FF}San Fierro {FFDC2E}CnR Version %s.", GetServerVersion( ) );
- SendClientMessage( playerid, 0xa9c4e4ff, "{FF0000}Warning!{FFFFFF} This server (and GTA in General) Contains Explicit Material." );
- SendClientMessage( playerid, 0xFFFFFFFF, "Select A Skin - Press{FFDC2E} SHIFT{FFFFFF} To Spawn." );
- //if ( IsValidServerVariable( "connectsong" ) )
- //{
- // GetServerVariableString( "connectsong", szNormalString );
- // PlayAudioStreamForPlayer( playerid, szNormalString );
- //}
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement