SA-MP Forums Archive
House icon Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: House icon Help (/showthread.php?tid=294640)



House icon Help - Matthew_Garrowo - 02.11.2011

My server restarted once and now the bussiness and houses are all over the place i got a command to move the bussinesses but when i move the bussiness and house only the name and stuff comes the icon dont show up


Re: House icon Help - park4bmx - 02.11.2011

well cant help you if you didnt put any code down so we have a look at it


Re: House icon Help - Matthew_Garrowo - 02.11.2011

if(strcmp(cmd, "/bizentrance", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 10)
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not an Admin !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bizentrance [bizid] - Moves a biz to you");
return 1;
}
new proplev = strval(tmp);
if(proplev > sizeof(BizzInfo) || proplev < 0)
{
SendClientMessage(playerid,COLOR_WHITE,"Business ID must be above 0 and below 5");
return 1;
}
else
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
format(string,sizeof(string),"Entrance of Biz %d to %f - %f - %f",proplev,X,Y,Z);
ABroadCast(COLOR_YELLOW,string,1);
BizzInfo[proplev][bEntranceX] = X;
BizzInfo[proplev][bEntranceY] = Y;
BizzInfo[proplev][bEntranceZ] = Z;
OnPropUpdate();
return 1;
}
}
return 1;
}




Can You Guys Help me make a command that brings the icon to and gets rid of the one in the random place


Re: House icon Help - Matthew_Garrowo - 02.11.2011

Anything


Re: House icon Help - Matthew_Garrowo - 03.11.2011

?