10.11.2012, 11:55
i made a cmd so if i type /agn no one can tp at me
PHP код:
if(strcmp(cmd, "/agn", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid))
{
if(!AdminTp[playerid])
{
SendClientMessage(playerid, COLOR_ORANGE, " Nu se poate teleporta nimeni la tine !");
AdminTp[playerid] = 1;
}
else if(AdminTp[playerid])
{
AdminTp[playerid] = 0;
SendClientMessage(playerid, COLOR_RED, " Acuma se poate teleporta admini la tine !");
}
}
}
return 1;
}
PHP код:
if(AdminTp[giveplayerid] > 0)
{
SendClientMessage(playerid, COLOR_RED, " Ne te poti teleporta la acest owner !");
return 1;
}