15.06.2009, 19:11
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; }