12.09.2009, 23:45
pawn Код:
new cmd[500];
pawn Код:
new cmd[128];
pawn Код:
cmd = strtok(cmdtext);
pawn Код:
new idx;
cmd = strtok(cmdtext,idx);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmdtext, "/help", true) == 0) {
SendClientMessage(playerid, 0xFF9900AA, "|-------------------------------------------------------------------------|");
SendClientMessage(playerid, 0x33CCFFAA, ".:DAWN OF THE STUNTS - HELP:.");
SendClientMessage(playerid, 0x33CCFFAA, "/register [password] : Keep your account's data(You need to /login too).");
SendClientMessage(playerid, 0x33CCFFAA, "/pm [playerid] [message] : Send a Private Message to a user.");
SendClientMessage(playerid, 0x33CCFFAA, "/telelist : All Teleport Commands.");
SendClientMessage(playerid, 0xFF9900AA, "|-------------------------------------------------------------------------|");
return 1;
}
if(strcmp(cmdtext, "/tel", true) == 0) {
SendClientMessage(playerid, 0xFF9900AA, "|-------------------------------------------------------------------------|");
SendClientMessage(playerid, 0x33CCFFAA, ".:DAWN OF THE STUNTS - Teleports:.");
SendClientMessage(playerid, 0x33CCFFAA, "/bmx /air1 /airjump1");
SendClientMessage(playerid, 0xFF9900AA, "|-------------------------------------------------------------------------|");
return 1;
}
return 0;
}