[Pomoc] Biznis

Započeo Rotcod, Oktobar 07, 2010, 19:52:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Kako da napravim isto na ovu foru ali da stavljam bizzove ingame =)


if(strcmp(cmd, "/sethouse", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /sethouse [houseid(34-150)]");
return 1;
}
new houseid;
houseid = strval(tmp);
tmp = strtok(cmdtext, idx);
new Float:X, Float:Y, Float:Z
GetPlayerPos(playerid, X,Y,Z);
if (PlayerInfo[playerid][pAdmin] >= 5)
{
  if(houseid >= 34 && houseid <= 300)
    {
      if(HouseInfo[houseid][hSetted] == 0)
      {
HouseInfo[houseid][hEntrancex] = X;
HouseInfo[houseid][hEntrancey] = Y;
HouseInfo[houseid][hEntrancez] = Z;
HouseInfo[houseid][hSetted] = 1;
    format(string,sizeof(string),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[houseid][hWorld], HouseInfo[houseid][hValue],HouseInfo[houseid][hDiscription], HouseInfo[houseid][hLevel]);
HouseLabel[houseid] = Create3DTextLabel(string ,0x00FF00AA,X,Y,Z,25, 0, 1);
OnPropUpdate();
OnPropTextdrawUpdate();
format(string, sizeof(string),"* Teleported the Set-Able House number %d To you. Use /edit and /setdesc and /houseint to edit It.",houseid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string,sizeof(string),"[ADMIN]: %s Has Set House: [%d]'s entrance to [%f - %f - %f].",sendername,houseid,X,Y,Z);
    ABroadCast(COLOR_LIGHTRED,string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Set the carid %s.",d,m,y,h,mi,s,sendername,giveplayer,houseid);
AdminLog(string);
      }
else
{
    SendClientMessage(playerid, COLOR_GREY, "* This HouseID is already in use!");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "* You can only use this on set-able Houses! (34-300)");
    return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
}
}
return 1;
}


U pitanju je nekadasnji Raven =)