26.07.2011, 06:58
whats wrong and here guys for me this command works clearly but for the other player dont work when he will tupe /repair nothing happens and no sending message btw he is id 0..
Sorry for my bad english ..
Thanks xD
pawn Код:
CMD:repair(playerid, params[])
{
if(IsPlayerAdmin2[playerid] == 2)
{
if(IsPlayerVip[playerid] == 2)
{
if(GetPVarInt(playerid,"CMDABUSE") > GetTickCount()) return SendClientMessage(playerid, COLOR_WHITE,"You must wait before using a command");
SetPVarInt(playerid,"CMDABUSE",GetTickCount()+90000);
{
new car = GetPlayerVehicleID(playerid);
RepairVehicle(car);
return 1;
}
}
}
return 1;
}

Thanks xD