03.08.2010, 03:54
Okay my ultimate goal is to make a /track command that puts a beacon on the map at the players location that updates and follows them as they update, but for some reason it doesn't even create a beacon, heres what I got so far, I got a /trackoff that disables checkpoints
Код:
if (strcmp("/track", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pMember] != 8) return SendClientMessage(playerid, COLOR_GREY, "* You must be a hitman to use this command.");
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /track [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
new Float:X,Float:Y,Float:Z;
GetPlayerPos(giveplayerid, X,Y,Z);
SetPlayerCheckpoint(playerid, X,Y,Z, 6);
}
}
}


