[Help] Park Command - 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: [Help] Park Command (
/showthread.php?tid=576601)
[Help] Park Command -
chsulaj - 05.06.2015
I need to edit Park Command only for Junior Adviser or admins - http://pastebin.com/2fNfbGa7
Also i'm having bug with houses someone is having a house which doesn't exists in server!
Also having final bug which is LSHIFT to stop the Animation!
-
I'd really appreciate if you guys will help me about those!
Re: [Help] Park Command -
JaydenJason - 05.06.2015
whats the enum/var for the advisor and the animation stopping code?
try using a clean db for the houses instead of using the one you downloaded the ngg script from
Re: [Help] Park Command -
chsulaj - 05.06.2015
Adviser is like pAdviser and about animation stopping code is not founded yet!
That's why i'm requesting your help guys, also i have removed all houses but still some new players are owning a houses which are not existing in Server some id's.
Cheers
Re: [Help] Park Command -
JaydenJason - 05.06.2015
For the animation, do a final check and search for these;
KEY_SPRINT
~k~~PED_SPRINT~
in the gamemode, and for the parking, replace
Код:
CMD:park(playerid, params[])
{
if(PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID)
with this
Код:
CMD:park(playerid, params[])
{
if(PlayerInfo[playerid][pAdviser] != 1 && PlayerInfo[playerid][pAdmin] < 1) return SendClientMessageEx(playerid, COLOR_WHITE, "Advisers and Admins are only allowed to use this command.");
if(PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID)
I think this'll do it, the admins+advisers only part confused me so it might not work
Re: [Help] Park Command -
chsulaj - 05.06.2015
In this code you have shown i believe also Players can park a car and i wanna Adviser+ which is >=1, thanks anyways.