11.11.2010, 10:04
My example:
Top:
Command:
Top:
pawn Код:
#define GATE_PASSWORD "mypassword"
pawn Код:
CMD:gate(playerid, params[])
{
if(params[0] == '\1' && params[1] == '\0')
SendClientMessage(playerid, 0xFF0000FF, "Write: /gate [password].");
else if(strcmp(params, GATE_PASSWORD, false))
SendClientMessage(playerid, 0xFF0000FF, "Password is incorrect.");
else
{
//write here MoveObject
}
return 1;
}