27.11.2011, 03:13
(
Последний раз редактировалось GAMER_PS2; 27.11.2011 в 03:56.
)
Heres the deal i have problem with my setskin yeah it works but it still sending
saying "%s has change skin model to 299" (example my skin is 299) it send to player
like this "You already using that skin model" but it keeps announcing to everyone
that i change to skin model 299 that i already use i want to block it. heres the code
also i want to know how to count players (not included yourself) in the server example:
"Theres currently 10 players online in the server" if theres no online it would be
"Theres no currently online in the server".
UPDATE:
ApplyAnimation is not working i put it onplayerrequestclass but nothing happens heres
my code onplayerrequestclass
Please help me
saying "%s has change skin model to 299" (example my skin is 299) it send to player
like this "You already using that skin model" but it keeps announcing to everyone
that i change to skin model 299 that i already use i want to block it. heres the code
pawn Код:
CMD:setskin(playerid, params[])
{
new skin, skinid, pname[MAX_PLAYER_NAME], string[128];
skinid = GetPlayerSkin(playerid);
if(sscanf(params,"i", skin)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /setskin <0 - 299>");
if(skin > 299 || skin < 0) return SendClientMessage(playerid,COLOR_RED,"Invalid Skin ID! <0 - 299>");
GetPlayerName(playerid, pname,sizeof(pname));
format(string, sizeof(string),"%s has changed skin model to %i", pname,skin);
SendClientMessageToAll(COLOR_GREEN,string);
format(string, sizeof(string),"Your skin have been set to %d", skin);
SendClientMessage(playerid,COLOR_GREEN, string);
if(skin == skinid) return SendClientMessage(playerid,COLOR_RED,"You already using that skin model");
SetPlayerSkin(playerid, skin);
return 1;
}
"Theres currently 10 players online in the server" if theres no online it would be
"Theres no currently online in the server".
UPDATE:
ApplyAnimation is not working i put it onplayerrequestclass but nothing happens heres
my code onplayerrequestclass
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
ApplyAnimation(playerid,"DANCING","dnce_M_a",3.1,0,0,0,0,1);
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 10.0);
SetPlayerFacingAngle(playerid, 65.6557);
SetPlayerPos(playerid,-248.4268,1362.1091,68.7860);
SetPlayerCameraPos(playerid, -255.2794,1365.9083,73.2267);
SetPlayerCameraLookAt(playerid, -248.4268,1362.1091,68.7860);
return 1;
}