15.09.2012, 00:16
aн vc esta fefinindo ele para admins e para membros da org numero 1.
pawn Код:
if(!strcmp("/reparar",cmdtext,true))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(logged[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pORG] >= 1 )
{
SendClientMessage(playerid,COLOR_GOLD, "[INFO] Vocк reparou seu veнculo.");
RepairVehicle(GetPlayerVehicleID(playerid));
else if(Player[playerid][pAdmin] == 0)
SendClientMessage(playerid,-1, " voce nao й um admin!");
return 1;
}