26.03.2010, 10:53
Quote:
Originally Posted by MatthewGarrowo
thanks
![]() |
i can try
so u want to know about messages conserning
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
if(!strcmp(cmdtext, "/help", true)) {
// Your code here.
}
}
you can use smth like this
pawn Код:
if(strcmp("/noob", cmdtext, true) == 0)
{
SendClientMessage(playerid, COLOR_GREEN, "i see your new to the server");
return 1;
}
or you can make smth like this
pawn Код:
if(strcmp("/noob", cmdtext, true) == 0)
{
GameTextForPlayer(killerid,"~g~ i see your new",1200,3);
return 1;
}
pawn Код:
1200,3
i hope this helps you understand you can also display textdraws through commands like this
pawn Код:
if (strcmp("/noob", cmdtext, true) == 0)
{
TextDrawShowForPlayer(playerid,welcome1);
return 1;
}