new id,giveplayer[30],string[100]; if(IsACop(playerid) || PlayerInfo[playerid][pLeader] || PlayerInfo[playerid][pMember] == 11) // Asta o poti sterge, depinde. { if(sscanf(params, "u",id)) return SendClientMessage(playerid, 0xFFFFFFFF, "Tasteaza: /find <Name/Playerid>"); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { if(id == playerid) return SendClientMessage(playerid, 0xFFB870FF, "You cannot find yourself."); if(togfind[id] == 1) return SCM(playerid,COLOR_WHITE,"Player not connected."); UsedFind[playerid] = 1; GetPlayerName(id, giveplayer, sizeof(giveplayer)); new Float:X,Float:Y,Float:Z; GetPlayerPos(id, X,Y,Z); SetPlayerCheckpoint(playerid, X,Y,Z, 3.5); CP[playerid] = 43; targetfind[playerid] = id; if(IsPlayerInArea(id, -2997.40, -1115.50, -1213.90, 1659.60)) In loc de new name[MAX_PLAYER_NAME]; GetPlayerName(targetID, name, MAX_PLAYER_NAME); FindTime[playerid] = 10000; PlayerFind[playerid] = targetID; new Float: x, Float: y, Float: z; GetPlayerPos(targetID,x,y,z); new Float: fDistance = GetPlayerDistanceFromPoint(playerid, x,y,z); format(szMessage, 256, "Server has set you a checkpoint to %s (%d). Distance: %.0f meters.",name, targetID, fDistance); SCM(playerid,COLOR_YELLOW, szMessage); SetPlayerCheckpoint(playerid,x,y,z,3.0);