/hfind Command help
#1

Hello all, I'm looking for a command that tracks a player something like /hfind.....

Thanks.
Reply
#2

like a gps system?
Reply
#3

Quote:

like a gps system?

Yes. but only the Police can use it.
Reply
#4

pawn Код:
if(strcmp(cmd, "/whereis", true) == 0) if(Logged[playerid] == 1)
{
if(Cop[playerid] || FBI[playerid] || SWAT[playerid]) // Change those.
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "( ! ) USAGE: /whereis [playerid]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerConnected(giveplayerid))
{
new playasd[MAX_PLAYER_NAME];
GetPlayerName(playerid,playasd,sizeof(playasd));
GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer));
new blah[128];
GetPlayer2DZone(giveplayerid, blah, sizeof(blah));
format(string, 128, "( %s ): %s > %s", playasd,giveplayer,blah);
SendClientMessage(playerid, COLOR_GREEN,string);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Invalid Player ID!");
}
return 1;
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"SERVER: Unknown command.");
}
return 1;
}
Reply
#5

Quote:

pawn Code:
if(strcmp(cmd, "/whereis", true) == 0) if(Logged[playerid] == 1)
{
if(Cop[playerid] || FBI[playerid] || SWAT[playerid]) // Change those.
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "( ! ) USAGE: /whereis [playerid]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerConnected(giveplayerid))
{
new playasd[MAX_PLAYER_NAME];
GetPlayerName(playerid,playasd,sizeof(playasd));
GetPlayerName(giveplayerid,giveplayer,sizeof(givep layer));
new blah[128];
GetPlayer2DZone(giveplayerid, blah, sizeof(blah));
format(string, 128, "( %s ): %s > %s", playasd,giveplayer,blah);
SendClientMessage(playerid, COLOR_GREEN,string);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Invalid Player ID!");
}
return 1;
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"SERVER: Unknown command.");
}
return 1;
}

Thanks, this works!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)