I want to make a "tag, you are it!" Fun Mod
#2

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;
}
Reply


Messages In This Thread
I want to make a "tag, you are it!" Fun Mod - by e_kingstone - 15.06.2009, 18:56
Re: I want to make a "tag, you are it!" Fun Mod - by CJ101 - 15.06.2009, 19:11
Re: I want to make a "tag, you are it!" Fun Mod - by e_kingstone - 15.06.2009, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)