18.11.2013, 20:17
hello i have this commands in script :
in game its :

pawn Код:
CMD:shopsword(playerid, params[])
{
if (PlayerInfo[playerid][pShopTech] < 1 && PlayerInfo[playerid][pAdmin] < 1338)
{
SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command.");
return 1;
}
new string[128], giveplayerid, slot, invoice[64];
if(sscanf(params, "uds[64]", giveplayerid, slot, invoice)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /shopsword [playerid] [slot(0-4)] [invoice #]");
PlayerToyInfo[giveplayerid][slot][ptModelID] = 3028;
PlayerToyInfo[giveplayerid][slot][ptBone] = 1;
PlayerToyInfo[giveplayerid][slot][ptPosX] = 20.0;
PlayerToyInfo[giveplayerid][slot][ptPosY] = -12.0;
PlayerToyInfo[giveplayerid][slot][ptPosZ] = 25.0;
PlayerToyInfo[giveplayerid][slot][ptRotX] = 0.0;
PlayerToyInfo[giveplayerid][slot][ptRotY] = 50.0;
PlayerToyInfo[giveplayerid][slot][ptRotZ] = 0.0;
format(string, sizeof(string), "You have been given a sword toy in slot %d, use /toys to manage it", slot);
SendClientMessageEx(giveplayerid, COLOR_LIGHTGREEN, string);
format(string, sizeof(string), "You have given %s a sword toy in slot %d", GetPlayerNameEx(giveplayerid), slot);
SendClientMessageEx(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof(string), "[SHOPM4] %s has given %s a sword toy - Invoice %s", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), invoice);
Log("logs/shoplog.log", string);
return 1;
}

Код:
why its -12000 and 2000 and 25000 ?!?