06.04.2009, 20:15
Quote:
Originally Posted by Torekk
Well, thanks for your help at first. But how would I then "include" into this command?
pawn Code:
Edit2: It appears that you can't use GetPlayerState(playerid) != PLAYER_STATE_DRIVER, you'll have to make it "vice versa". |
pawn Code:
if (strcmp("/fix", cmdtext, true)==0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle or you're not the driver of it!");
}
return 1;
}