15.09.2012, 00:30
pawn Код:
if(strcmp(cmd, "/veh", true) == 0 || strcmp(cmd, "/ccar", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), "level");
if(logged[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pORG] >= 1 || PlayerInfo[playerid][pREPORTER] >= 1 || PlayerInfo[playerid][pVIP] >= 1 )
{
ShowMenuForPlayer(Vehicle,playerid);
TogglePlayerControllable(playerid, 0);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Vocк nгo tem permissгo para usar este comando!");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Vocк tem que estar logado para usar este comando!");
}
return 1;
}