11.09.2009, 19:55
Can't help much not knowing your script at all;
BTW, if you cannot do this easy code (just about adding IsPlayerAdmin() in the code), I really think you shouldn't be scripting gamemodes at all. First learn to script, then start making gamemodes. I bet this your gamemode is a GF-edit anyway.
pawn Код:
if(strcmp(cmd, "/refilladm", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
Fuel[GetPlayerVehicleID(playerid)] = 999; // Change the array name & value to the correct ones
return SendMessage(playerid,WHITE,"[*] Vehicle refilled.");
}
else return SendMessage(playerid,WHITE,"[*] You're not driving a vehicle.");
}
else return SendMessage(playerid,WHITE,"[*] You're not an admin.");
}