09.12.2010, 17:25
Is that possible to call out in /test dcmd command test?
dcmd_test(playerid, params[])
{
SendClientMesage(playerid, COLOR_WHITE, "It works!");
return 1;
}
I don't quite know what you mean. If you mean to do a test command using DCMD to make sure it works it would be pretty simple.
pawn Код:
|
dcmd_test(playerid, params[])
{
SendClientMesage(playerid, COLOR_WHITE, "It works!");
return 1;
}
if(strcmp(cmdtext, "/test", true) == 0)
{
dcmd(test,4,cmdtext);
}
i mean
pawn Код:
|
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(test,4,cmdtext);
return 0;
}
dcmd_test(playerid, params[])
{
SendClientMesage(playerid, COLOR_WHITE, "It works!");
return 1;
}