SA-MP Forums Archive
Help me with make help in pawno for cmd :s - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me with make help in pawno for cmd :s (/showthread.php?tid=109120)



Help me with make help in pawno for cmd :s - buonggiorno - 17.11.2009

Hello.

I have gps system on my server but i want when player tupe /gps in console to get message
use: /gpsjobs to see jobs and /gpsloc to see locations...
you know, just little help when somebody type /gps in console )

tnx



Re: Help me with make help in pawno for cmd :s - LarzI - 17.11.2009

do you mean /gps in console (aka samp-server.exe) or in-game as a text command?

pawn Код:
if(!strcmp(cmdtext, "/gps", true))
    return SendClientMessage(playerid, 0xFFFF00AA, "USAGE: /gpsjobs to see jobs and /gpsloc to see locations.");
That easy is it, if I've understanded your request correctly


Re: Help me with make help in pawno for cmd :s - Retardedwolf - 18.11.2009

Quote:
Originally Posted by lrZ^ aka LarzI
pawn Код:
if(!strcmp(cmdtext, "/gps", true))
    return SendClientMessage(playerid, 0xFFFF00AA, "USAGE: /gpsjobs to see jobs and /gpsloc to see locations.");
He wants the console to get the message.
pawn Код:
printf("Playerid %s typed /GPS.",string);




Re: Help me with make help in pawno for cmd :s - Abernethy - 18.11.2009

Quote:
Originally Posted by www.******.com|*I pastebin*|
Quote:
Originally Posted by lrZ^ aka LarzI
pawn Код:
if(!strcmp(cmdtext, "/gps", true))
    return SendClientMessage(playerid, 0xFFFF00AA, "USAGE: /gpsjobs to see jobs and /gpsloc to see locations.");
He wants the console to get the message.
pawn Код:
printf("Playerid %s typed /GPS.",string);

Coding fail.
pawn Код:
// Place this in your /gps command.
new
    Name[20];
   
GetPlayerName(playerid, Name, sizeof(Name));
printf("User %s [ID:%d] has typed the command '/gps'", Name, playerid);