HELP ME TO MAKE /RESCUE CMD PLEASE? :( - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP ME TO MAKE /RESCUE CMD PLEASE? :( (
/showthread.php?tid=109314)
HELP ME TO MAKE /RESCUE CMD PLEASE? :( -
buonggiorno - 19.11.2009
Hi to all, i want to make /rescue cmd
So when somebody flying, driving and get crash his plane, boat or car and there is nowhere car near and player get little healt, hi call rescue team and become red on map ( part of army team ) or if have time to help me to create rescue team like team pd, fbi, army....
Any help?
Re: HELP ME TO MAKE /RESCUE CMD PLEASE? :( -
Niixie - 19.11.2009
There is a request thread where you can ask
Re: HELP ME TO MAKE /RESCUE CMD PLEASE? :( -
Kurence - 19.11.2009
Quote:
Originally Posted by buonggiorno
Hi to all, i want to make /rescue cmd
So when somebody flying, driving and get crash his plane, boat or car and there is nowhere car near and player get little healt, hi call rescue team and become red on map ( part of army team ) or if have time to help me to create rescue team like team pd, fbi, army....
Any help?
|
Code:
public OnPlayerCommandText(playerid,cmdtext[]){
if(strcmp("/rescue",cmdtext,true) == 0){
new Bastard[128],Basterd[MAX_PLAYER_NAME];
GetPlayerName(playerid,Basterd,sizeof(Basterd));
format(Bastard,sizeof(Bastard),"Players %s needs help!!!",Basterd);
return 1;
}
return 0;
}
this will send message when player need help
Re: HELP ME TO MAKE /RESCUE CMD PLEASE? :( -
LarzI - 19.11.2009
Also use SetPlayerMapIcon
Re: HELP ME TO MAKE /RESCUE CMD PLEASE? :( -
Kurence - 19.11.2009
It is basicest that ever can be made