26.03.2010, 10:05
how do i make a /help i been looking for tuts for along time i only found a couple but none on /help can anyone help
public OnPlayerCommandText(playerid, cmdtext[]) {
if(!strcmp(cmdtext, "/help", true)) {
// Your code here.
}
}
Originally Posted by MatthewGarrowo
thanks
|
public OnPlayerCommandText(playerid, cmdtext[]) {
if(!strcmp(cmdtext, "/help", true)) {
// Your code here.
}
}
if(strcmp("/noob", cmdtext, true) == 0)
{
SendClientMessage(playerid, COLOR_GREEN, "i see your new to the server");
return 1;
}
if(strcmp("/noob", cmdtext, true) == 0)
{
GameTextForPlayer(killerid,"~g~ i see your new",1200,3);
return 1;
}
1200,3
if (strcmp("/noob", cmdtext, true) == 0)
{
TextDrawShowForPlayer(playerid,welcome1);
return 1;
}