27.01.2015, 16:28
Nevermind. I fixed it
CMD:tyliai(playerid, params[])
{
if(PlayerInfo[playerid][pMask] == 0)
{
new
string[128],
tyliai[100];
if(sscanf(params, "s[100]", tyliai)) return SendClientMessage(playerid, COLOR_GRAD2, "NAUDOJIMAS:"COL_WHITE" /(t)yliai [tekstas]");
format(string, sizeof(string), "%s tyliai: %s", RPName(playerid),tyliai);
ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
ApplyAnimation(playerid, "RIOT", "RIOT_shout",4.1,0,0,0,0,0);
}
else
{
new
string[128],
tyliai[100];
if(sscanf(params, "s[100]", tyliai)) return SendClientMessage(playerid, COLOR_GRAD2, "NAUDOJIMAS:"COL_WHITE" /(t)yliai [tekstas]");
format(string, sizeof(string), "Nepaћistamasis tyliai: %s", RPName(playerid),tyliai);
ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
ApplyAnimation(playerid, "RIOT", "RIOT_shout",4.1,0,0,0,0,0);
}
return 1;
}