15.01.2015, 13:03
I have this command
And when i use it it give me "You can't use this command"
but when i see my admin level it is equal 5
so what ?
PHP код:
CMD:car(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2) return SendClientMessage(playerid, COLOR_RED, "You can't use this command");
new carid, color1, color2;
new Float:x, Float:y, Float:z;
new Float:health;
if(sscanf(params, "ddd", carid, color1, color2)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /car [id] (Color 1) (Color 2)");
if(carid < 411 || carid > 611) return SendClientMessage(playerid, COLOR_RED, "Car id can't be less than 411 or more than 611");
GetPlayerPos(playerid, x, y, z);
new car = CreateVehicle(carid, x+3, y, z, color1, color2, -1);
new interior = GetPlayerInterior(playerid);
LinkVehicleToInterior(car, interior);
new world = GetPlayerVirtualWorld(playerid);
SetVehicleVirtualWorld(car, world);
GetVehicleHealth(car, health);
if(health == 0)
{
DestroyVehicle(car);
}
SendClientMessage(playerid, COLOR_BROWN, "Vehcile Spawned");
return 1;
}
but when i see my admin level it is equal 5
so what ?