10.06.2013, 05:28
Код:
if(!setTG[playerid])
+rep on you 
But now the other problem.. I have a command ingame.. /setplayertg [id] ..
Код:
if (strcmp(cmdtext, "/setplayertg", true ) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
new otherplayerid;
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Use /setplayertg [playerid/name]");
else if(!IsPlayerConnected(otherplayerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "This player is not connected");
else
{
SendClientMessage(otherplayerid,COLOR_LIGHTRED,"You've been set to [Team 2] by an [Admin].");
setTG[otherplayerid] = 1;
}
return 1;
}

