22.04.2011, 18:14
Hi all !
So i need a little bit help for this:
1) A person can't type a cmd twice !
So if the player types /addmissiles .. it's good but when the player type /addmissiles again, he may not do that ...
So how to do this ? If he type the cmd twice then he must receive this cmd:
2) How to make this ...
So this is a little difficult for me ... i searched alot on the forum and on ****** but my question is:
How to add a bar that show the vehicle health , the bar must be seen for everyone IG ! So it's like the vehicle health bar above the vehicle ... and then when the vehicle lost health the bar must lost health too ofcourse ...
This is (maybe) very difficult for me (i just can't find it how to script) !
------------------------------------------------------------------------------------
SO PLZ HELP ME WITH THESE 2 THINGS !
So i need a little bit help for this:
1) A person can't type a cmd twice !
pawn Код:
CMD:addmissiles(playerid,params[])
{
if(IsPlayerInDerby[playerid] == 1)
{
AddVehicleMissiles(GetPlayerVehicleID(playerid),1.1,-0.2);
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName,32);
format(string, sizeof string,"[DERBY] %s added missiles to his/her car !",pName);
SendClientMessageToAll(COLOR_ORANGE,string);
}
else SendClientMessage(playerid,COLOR_RED,"You are not in the derby !");
return 1;
}
So how to do this ? If he type the cmd twice then he must receive this cmd:
pawn Код:
SendClientMessage(playerid,COLOR_RED,"You already used missles !");
So this is a little difficult for me ... i searched alot on the forum and on ****** but my question is:
How to add a bar that show the vehicle health , the bar must be seen for everyone IG ! So it's like the vehicle health bar above the vehicle ... and then when the vehicle lost health the bar must lost health too ofcourse ...
This is (maybe) very difficult for me (i just can't find it how to script) !
------------------------------------------------------------------------------------
SO PLZ HELP ME WITH THESE 2 THINGS !
![Grin](images/smilies/biggrin.gif)