16.07.2010, 21:27
now i need make command use one time like fix command
oh and how to make flip command to use one time too
[url=https://sampforum.blast.hk/showthread.php?pid=755007#pid755007&posted=1#post755007]join this topic to help me for thing[/url
pawn Код:
if(strcmp(cmdtext, "/fix", true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsPlayerInArea(playerid, 1153.0000, 1307.5000, -2107.5000, -2003.5000) == 1)
{
SendClientMessage(playerid,COLOR_RED,"You are not allowed to repair your vehicle in /BloodringArena.");
}
else
{
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
SendClientMessage(playerid,COLOR_BASIC,"Your vehicle has been fixed.");
SendClientMessage(playerid,COLOR_GREY,"Info: press the -Submission key- to repair your vehicle.");
SendClientMessage(playerid,COLOR_GREY," ( = key to activate smoke on a stuntplane).");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "(You must be inside a vehicle to use this command).");
}
return 1;
}
[url=https://sampforum.blast.hk/showthread.php?pid=755007#pid755007&posted=1#post755007]join this topic to help me for thing[/url