19.11.2009, 16:15
Try this command (you need to have zcmd include + sscanf)
pawn Код:
command(edithinterior,playerid,params[])
{
new houseid, Float:hX, Float: hY, Float: hZ, intID;
if(sscanf(params,"ifffi",houseid,hX,hY,hZ,intID)) return
SendClientMessage(playerid,COLOR_GREY,"USAGE: /edithinterior [houseid] [hX] [hY] [hZ] [interior ID]");
else
{
if(IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 105)
{
HouseInfo[houseid][hExitx] = hX;
HouseInfo[houseid][hExity] = hY;
HouseInfo[houseid][hExitz] = hZ;
HouseInfo[houseid][hWorld] = intID;
format(string,sizeof(string), "-OperServ- Houseid's %d interior has been set to %d (%f,%f,%f)",houseid,intID,hX,hY,hZ);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
}
else SendClientMessage(playerid,COLOR_GREY,"You're not allowed to use this command!");
}
return 1;
}