28.01.2012, 04:38
here you go
pawn Код:
/* top of script */
new IsPlayerInJetPack[MAX_PLAYERS];
COMMAND:getjetpack(playerid, params[])
{
if(GetPlayerScore(playerid) > 100)
{
if(IsPlayerInJetPack[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You already have your JetPack!");
SendClientMessage(playerid, COLOR_GREEN, "Enjoy with your jetpack!");
IsPlayerInJetPack[playerid] = 1;
SetPlayerSpecialAction(playerid, 2);
}
else return SendClientMessage(playerid, COLOR_RED, "You do not have enough score to ride a JetPack!");
return 1;
}