How to fix toy shop
#2

pawn Код:
if(strcmp(cmd, "/vest", true) == 0)
{
new string2[128], slot;
if(giveplayerid != INVALID_PLAYER_ID)
{
PlayerToyInfo[giveplayerid][slot][ptModelID] = 19142;
PlayerToyInfo[giveplayerid][slot][ptBone] = 1;
PlayerToyInfo[giveplayerid][slot][ptPosX] = 0.07998;
PlayerToyInfo[giveplayerid][slot][ptPosY] = 0.03999;
PlayerToyInfo[giveplayerid][slot][ptPosZ] = 0.0;
PlayerToyInfo[giveplayerid][slot][ptRotX] = 0.0;
PlayerToyInfo[giveplayerid][slot][ptRotY] = 0.0;
PlayerToyInfo[giveplayerid][slot][ptRotZ] = 0.0;
format(string2, sizeof(string2), "You have been given a police vest in slot %d, use /toys to manage it", slot);
SendClientMessage(giveplayerid, COLOR_LIGHTGREEN, string2);
}
return 1;
}
Should work.
Reply


Messages In This Thread
How to fix toy shop - by arititlez - 23.07.2013, 09:09
Re: How to fix toy shop - by JimmyCh - 23.07.2013, 09:12
Re: How to fix toy shop - by arititlez - 23.07.2013, 09:14
AW: How to fix toy shop - by Macronix - 23.07.2013, 09:43
Re: How to fix toy shop - by arititlez - 23.07.2013, 12:01

Forum Jump:


Users browsing this thread: 1 Guest(s)