10.04.2013, 15:44
Olha cara fiz algumas aqui:
Se quiser mudar pra strcmp sу mundar a sintaxe.
pawn Код:
#define Verde 0x006A00FF
#define Azul 0x004080FF
#define Rosa 0xFF0080FF
#define Amarelo 0xFFFF00FF4
pawn Код:
CMD:cores(playerid,params[])
{
SendClientMessage(playerid,-1,"Corres> verde, azul, amarelo, rosa");
return true;
}
CMD:corrosa(playerid,params[])
{
SetPlayerColor(playerid,Rosa);
return true;
}
CMD:corazul(playerid,params[])
{
SetPlayerColor(playerid,Azul);
return true;
}
CMD:corverde(playerid,params[])
{
SetPlayerColor(playerid,Verde);
return true;
}
CMD:coramarelo(playerid,params[])
{
SetPlayerColor(playerid,Amarelo);
return true;
}