24.11.2012, 12:35
pawn Код:
CMD:createbiz(playerid, params[])
{
new Float:pos[3], inter;
if(sscanf(params,"i",inter)) return SendClientMessage(playerid, -1, "USAGE: /createbiz");
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
for(new i = 0; i < sizeof(BizInfo);i++)
{
BizInfo[i][enterx] = pos[0];
BizInfo[i][entery] = pos[1];
BizInfo[i][enterz] = pos[2];
BizInfo[i][intera] = inter;
BizInfo[i][pickup] = CreatePickup(1274, 1, BizInfo[i][enterx], BizInfo[i][entery], BizInfo[i][enterz], 0);
}
return 1;
}