07.11.2012, 09:10
Quote:
No man i dont what to use that for Detective i got Detective system i need /hfind if you dont what is it then dont send another things please.
|
Код:
CMD:hfind(playerid, params[]) { if(PlayerInfo[playerid][pFaction] != 8 ) { SendClientMessageEx(playerid, COLOR_GREY, "You're not Hitman."); return 1; } if(UsedFind[playerid]) { SendClientMessageEx(playerid, COLOR_GREY, "You've already searched for someone - wait a little."); return 1; } new string[128], giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /hfind [playerid]"); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid == playerid) { SendClientMessageEx(playerid, COLOR_GREY, "You can't use this command on yourself."); return 1; } if(GetPlayerInterior(giveplayerid)!=0) { SendClientMessageEx(playerid, COLOR_GREY, "That person is inside an interior."); return 1; } if(PlayerInfo[giveplayerid][pAdmin] >= 2 && PlayerInfo[giveplayerid][pAdminDuty] == 1) { SendClientMessageEx(playerid, COLOR_GREY, "You are unable to find this person."); return 1; } new points; new reload; SetPlayerMarkerForPlayer(playerid, giveplayerid, FIND_COLOR); new zone[MAX_ZONE_NAME]; GetPlayer3DZone(giveplayerid, zone, sizeof(zone)); format(string, sizeof(string), "%s has been last seen at %s.", GetPlayerNameEx(giveplayerid), zone); SendClientMessageEx(playerid, COLOR_GRAD2, string); FindingPlayer[playerid]=giveplayerid; FindTime[playerid] = 1; FindTimePoints[playerid] = points; else { SendClientMessageEx(playerid, COLOR_GREY, "Invalid player specified."); } return 1; }