Help me with make help in pawno for cmd :s
#1

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
Reply
#2

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
Reply
#3

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);

Reply
#4

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)