I want to make a "tag, you are it!" Fun Mod -
e_kingstone - 15.06.2009
This mod will have the following features:
Commands:
/tag "playerid" (done by anybody, it should be active again when the "tagged player" left the server)
/tag off
Only one tagged player at a time. When this is activated it should show a message in the lower part of the screen the message: "Playername" "id" is tagged! (and even better his car should be colored yellow or add a distinctive, clearly visible item on the car)
The tagged player should run after the others to catch them, and when he touches somebody, that player should become the new tagged person.
If the player exits vehicle, he should still be it.
I will also add a godmode, a car spawner and lot of cool objects like ramps
So basicaly i need help on how to know if a car hits another one
Any help is appreciated
Re: I want to make a "tag, you are it!" Fun Mod -
CJ101 - 15.06.2009
how to do it:
Код:
new TaggedMatch;
new TaggedPlayer;
new Float: TPX;
new Float: TPY;
new Float: TPZ;
Код:
forward
public Check(playerid)
{
if(PlayerToPoint(1, playerid, TPX,TPY,TPZ)
{
TaggedPlayer = 0;
SendClientMessageToAll(COLOR_HERE,"The tagged player was found.");
}
return 1;
}
//make this into a timer
Command:
dcmd_tagplayer(playerid,params[])
{
new tmp[300], Index;
tmp = strtok(params,Index);
new id = strval(tmp);
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"That Player Is Not Connected");
GetPlayerPos(id,TPX,TPY,TPZ);
new string[256],pName[90];
GetPlayerName(id,pName,90);
format(string, sizeof(string), "%s is the tagged player, go find him.",pName);
SendClientMessageToAll(COLORHERE,string);
TaggedPlayer = id;
return 1;
}
Re: I want to make a "tag, you are it!" Fun Mod -
e_kingstone - 15.06.2009
thank you very much cj101
I will test it and see how it works, then i will release it giving you all the credits
I could even kiss you
PS: I got these compile errors:
E:\GTA SA\GTA San Andreas\! samp02Xserver.win32\pawno\tagmode.pwn(179) : warning 235: public function lacks forward declaration (symbol "Check")
E:\GTA SA\GTA San Andreas\! samp02Xserver.win32\pawno\tagmode.pwn(181) : error 017: undefined symbol "PlayerToPoint"
E:\GTA SA\GTA San Andreas\! samp02Xserver.win32\pawno\tagmode.pwn(183) : error 017: undefined symbol "TaggedPlayer"
E:\GTA SA\GTA San Andreas\! samp02Xserver.win32\pawno\tagmode.pwn(183) : warning 215: expression has no effect
E:\GTA SA\GTA San Andreas\! samp02Xserver.win32\pawno\tagmode.pwn(186) : warning 217: loose indentation
E:\GTA SA\GTA San Andreas\! samp02Xserver.win32\pawno\tagmode.pwn(211) : warning 203: symbol is never used: "dcmd_tagplayer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Any ideas?