Jump to content
  • 0

Intrebare din nou


Marschall

Question

1 answer to this question

Recommended Posts

Iti alegi interiouru de aici http://weedarr.wikidot.com/interior

si la uram crezi un pickup:

AddStaticPickup(1239, 23, cordonatele unde sa fie pickup-ul);

si iti faci o comanda pt /enter

if(strcmp(cmdtext, "/enter", true) == 0)
    {
       if(PlayerInfo[playerid][pMember] >= 0 || PlayerInfo[playerid][pLeader] >= 0)
       {
		 if PlayerToPoint(5, playerid,cordonate de afara)
		 *then
		 {
		   SetPlayerPos(playerid,cordonate din interior);
		   SetPlayerInterior(playerid,5);
		   SendClientMessage(playerid,COLOR_1GREEN,"*** Mesajul pe care sa il dea cand intra!");
		   return 1;
		 }
		}
	}

if(strcmp(cmdtext, "/exit", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] >= 0 || PlayerInfo[playerid][pLeader] >= 0)=>aici daca vrei sa fie pt o factiune pui id factiuni daca e pt toata lumea lasi 0)
	   {
		 if PlayerToPoint(5,playerid,cordonate interior)
		 *then
		 {
		   SetPlayerPos(playerid,cordonate exterior);
		   SetPlayerInterior(playerid,0);
		   SendClientMessage(playerid,COLOR_1GREEN,"*** Mesaj. !");
		   return 1;
		 }
		}
	}

la faza cu crash nush sa te ajut:P

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.