SA-MP Forums Archive
PLEASE help with this cmdd - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PLEASE help with this cmdd (/showthread.php?tid=133686)



PLEASE help with this cmdd - kingforyou - 13.03.2010

Whats wrong here the object doesnt createeee !
AND the message "From now on this will be you safe location"
works its send it but OBJECT DOESNT CREATEEE
Код:
else if(strcmp(x_nr,"place",true) == 0)
	    {
	      if(PlayerInfo[playerid][pFMember] < 255 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 14)
      	{
					if(PlayerInfo[playerid][sOwnSafe] != 999)
				 	{
				 	  new Float:SX, Float:SY, Float:SZ, Float:SA;
						GetPlayerFacingAngle(playerid, SA);
						GetPlayerPos(playerid,SX,SY,SZ);
						PlayerInfo[playerid][sSafe] = CreateObject(2332,SX,SY,SZ, 0.0, 0.0, 0.0);
						PlayerInfo[playerid][sSafex] = SX;
				 	  PlayerInfo[playerid][sSafey] = SY;
				 	  PlayerInfo[playerid][sSafez] = SZ;
						SendClientMessage(playerid,COLOR_YELLOW,"From now on this will be you safe location");
						OnPlayerUpdate(playerid);
				  	}
				  else {
				  SendClientMessage(playerid,COLOR_ORANGE,"You already own a safe");
				  }
				}
				else {
				SendClientMessage(playerid,COLOR_ORANGE,"You must be part or gang/family");
				}
	    }



Re: PLEASE help with this cmdd - Chriham3 - 13.03.2010

Quote:
Originally Posted by kingforyou
Whats wrong here the object doesnt createeee !
AND the message "From now on this will be you safe location"
works its send it but OBJECT DOESNT CREATEEE
Код:
else if(strcmp(x_nr,"place",true) == 0)
	    {
	      if(PlayerInfo[playerid][pFMember] < 255 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 14)
      	{
					if(PlayerInfo[playerid][sOwnSafe] != 999)
				 	{
				 	  new Float:SX, Float:SY, Float:SZ, Float:SA;
						GetPlayerFacingAngle(playerid, SA);
						GetPlayerPos(playerid,SX,SY,SZ);
						CreateObject(2332,SX,SY,SZ, 0.0, 0.0, 0.0);
						PlayerInfo[playerid][sSafex] = SX;
				 	  PlayerInfo[playerid][sSafey] = SY;
				 	  PlayerInfo[playerid][sSafez] = SZ;
						SendClientMessage(playerid,COLOR_YELLOW,"From now on this will be you safe location");
						OnPlayerUpdate(playerid);
				 	}
				  else {
				  SendClientMessage(playerid,COLOR_ORANGE,"You already own a safe");
				  }
				}
				else {
				SendClientMessage(playerid,COLOR_ORANGE,"You must be part or gang/family");
				}
	    }
Should work.


Re: PLEASE help with this cmdd - kingforyou - 14.03.2010

i got my broblem i had to take Angel too so now its work