08.07.2011, 23:11
My onplayerconnect:
pawn Код:
public OnPlayerConnect(playerid)
{
new string[128];
format(string, sizeof(string), "~r~Welcome to Xtreme Stunts!~n~~n~Please start with reading the /rules");
GameTextForPlayer(playerid, string, 10000, 4);
SetPlayerColor(playerid, PlayerColors[playerid]);
IsInDM[playerid] = 0;
AutoRepairUsed[playerid] = 0;
AutoRepairTrigger[playerid] = 0;
SendClientMessage(playerid, 0x99FFFFAA, "This server has auto repair/flip");
SendClientMessage(playerid, 0x99FFFFAA, "Welcome! Hope you enjoy your stay!");
nojump2[playerid] = 0;
TextDrawShowForPlayer(playerid, Textdraw1);
ReceiveInfo[playerid] = true;
if(IsVoteKickStarted == true)
{
TextDrawShowForPlayer(playerid, Background); //Prevent bugs in case a player connect while a votekick is started
TextDrawShowForPlayer(playerid, VoteKickTitle);
TextDrawShowForPlayer(playerid, VoteKickName);
TextDrawShowForPlayer(playerid, VoteKickVote);
TextDrawShowForPlayer(playerid, VoteKickTime);
return 1;
}
return 1;
}