05.07.2014, 17:41
Hey again,
I'm scripting with LA-RP and i wanted to know how i can make system like that.Only confident players can enter(drug dealer, weapon smuggles etc.)
I'm using this system do enter buildings. Example:
You need to press F to enter buildings.
I think i can do something with this, but i dont how to build it up right way. :P
Regards, Sturra.
I'm scripting with LA-RP and i wanted to know how i can make system like that.Only confident players can enter(drug dealer, weapon smuggles etc.)
I'm using this system do enter buildings. Example:
You need to press F to enter buildings.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new string[256]; if(newkeys == KEY_SECONDARY_ATTACK) if (IsPlayerInRangeOfPoint(playerid, 3,-179.1893,1133.1321,19.7422)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,2306.8218,-16.1652,26.7496); SetPlayerFacingAngle(playerid, 268); GameTextForPlayer(playerid, "~w~Bank", 5000, 3); } else if(IsPlayerInRangeOfPoint(playerid, 3,2304.6860,-16.1385,26.7422)) {// Fort Carson Panka vдlja SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,-181.6577,1133.0253,19.7422); SetPlayerFacingAngle(playerid, 87); GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3); }
Код:
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2022.1492,-1108.7837,26.2031)) { if(PlayerInfo[i][pMember] == 16 || PlayerInfo[i][pLeader] == 16) { GameTextForPlayer(i, "~g~Teretulemast,~n~~y~Siin on tддpakkumine : ~r~Narkoдrikas~n~~w~Kirjuta /liitu kui sa soovid tддkohta vastu vдtta", 5000, 3); } else { GameTextForPlayer(i, "~r~Staff only", 5000, 3); } }