30.10.2015, 07:11
Try this
PHP код:
CMD:find(playerid, params[])
{
if(pInfo[playerid][pJob] != 1) return SendClientMessage(playerid, COLOR_DARKGRAY,"You're not a detective!");
new targetid, Float:x, Float:y, Float:z;
if(sscanf(params,"u", targetid)) return SendSyntaxMessage(playerid, "/find [playerid/PartOfName]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_DARKGRAY,"Invalid player!");
GetPlayerPos(targetid, x, y, z);
SetPlayerCheckpoint(playerid, x, y, z, 4.0);
FindTimer[playerid] = SetTimerEx("findPlayer", 1000, 1, "ii", targetid, playerid);
return 1;
}