[HELP] Creating a simple /info system
#1

Hey sa-mp forum, I would like to know if there is any way that I can make a simple /info command that displays the following about other players or yourself:

Location
Distance (from you)
Speed
Wanted Level
Team

thanks in advance,
borg245
Reply
#2

Check my sig, it's got most of those functions.
Reply
#3

I find that script a little complex for me. Also the things that I would like aren't included in that filterscript, except ofcourse, the location.
thanks anyways.
Reply
#4

Quote:
Originally Posted by borg245
I find that script a little complex for me. Also the things that I would like aren't included in that filterscript, except ofcourse, the location.
thanks anyways.
Distance: Use GetDistanceBetweenPoints
Speed: GetPlayerVelocity/GetVehicleVelocity
Wanted Level: GetPlayerWantedLevel
Team: Gteam or GetPlayerTeam

That should work =].
Reply
#5

Well, I'm kind of new to scripting..
I was wondering if you can help me start off the code?

thx,
borg245
Reply
#6

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext, "/info", true, 5)) // 5 is the length of /info
  {
    if(cmdtext[3] == 0)
    {
      SendClientMessage(playerid, white, "USAGE: /info [id]");
      return 1;
    }
    
// YOUR CODE WILL GO HERE

  }
Reply


Forum Jump:


Users browsing this thread: