30.07.2015, 19:06
Try this
PHP код:
CMD:pu(playerid,params[]){
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 ||
PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
switch(pTrack)
{
case INVALID_PLAYER_ID:
{
new id;
if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"/c20 [playerid]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Invalid playerid");
pTrack[playerid] = id;
pTrackTimer[playerid] = SetTimerEx("TrackTimer",1000,1,"i",playerid);
}
default
{
pTrack[playerid] = INVALID_PLAYER_ID;
KillTimer(pTrackTimer[playerid]);
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}