23.02.2011, 23:57
(
Последний раз редактировалось tanush; 24.02.2011 в 00:40.
Причина: why you wanna know?
)
Most newbie might make rp and want to know how to make /me [action] CMD for example
* Tanush has punched CJ by the nose
Like if you do /me punches CJ by the nose. on server it will show to everyone * [yourname] punches CJ by the nose
ok Under OnPlayerCommandText add
Your script should look like
pictures for example
LOOK AT SECOND LINE where it says * Zack_Bruseli shows middle finger". it will look like that
NOTICE:It's my first tutorial, i wish you like it .
* Tanush has punched CJ by the nose
Like if you do /me punches CJ by the nose. on server it will show to everyone * [yourname] punches CJ by the nose
ok Under OnPlayerCommandText add
pawn Код:
if(!strcmp(cmdtext, "/me", true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(0xFF9900AA, str);
return 1;
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/me", true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(0xFF9900AA, str); //I put orange cause i like it, you could change colour if you want to -.-
return 1;
}
return 0;
}
LOOK AT SECOND LINE where it says * Zack_Bruseli shows middle finger". it will look like that
NOTICE:It's my first tutorial, i wish you like it .