Jump to content
  • 0

Cum fac un checkpoint intrare - iesire?


John

Question

Salut !

Cum pot sa imi fac un checkpoint intrare-iesire?

de ex: Eu vreau sa pun un checkpoint in fata magazinului si cand intru in cercul acela sa intre in magazin.Si din interior cand intru in cercul acela rosu sa iasa afara.

Cum fac?

Va rog eu ajutatima !!

SAMP - Counter Strike 1.6

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Se numeste pickup si , avem asa :

Dupa OnGameModeInit :

AddStaticPickup(1239,Floatx,Floaty,Floatz,-1)

apoi

if(strcmp(cmd, "/enter",true) == 0)

{

    if(IsPlayerConnected(playerid))

    { if(IsPlayerInRangeOfPoint(playerid,7.0,Floatx,Floaty,Floatz))

{

  SendClientMessage(playerid , COLOR_BLUE, "Bun venit la HQ");

  SetPlayerPos(playerid , Floatx,Floaty,Floatz );

  SetPlayerInterior(playerid,0);

}

return 1;

}

Sper ca ti'am fost de ajutor :)

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.