[Tutorial] Creating Simple Neon
#10

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
You've added 2 checks that actually are valid both at the same time when the player is inside a vehicle as driver.

If the player is a driver, he's also automatically inside a vehicle, so no need to check for both.
You cannot have a state as driver when you're not inside a vehicle.
This will suffice:

pawn Код:
CMD:neon(playerid,params[])
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
        ShowPlayerDialog(playerid, NEONMENU, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Select", "Cancel");
}
else SendClientMessage(playerid, 0x00FFFFAA, "You Are Not Inside Vehicle");
return 1;
}
Oh thanks for your suggestion i will change it later
Reply


Messages In This Thread
Creating Simple Neon - by HolyScripter - 08.11.2013, 14:46
Re: Creating Simple Neon - by newbie scripter - 08.11.2013, 15:29
Re: Creating Simple Neon - by HolyScripter - 08.11.2013, 22:43
Re: Creating Simple Neon - by Krisna - 09.11.2013, 01:01
Re: Creating Simple Neon - by newbie scripter - 09.11.2013, 02:07
Re: Creating Simple Neon - by HolyScripter - 09.11.2013, 22:19
Re: Creating Simple Neon - by botak - 09.01.2014, 07:35
Re: Creating Simple Neon - by Voxel - 09.01.2014, 07:56
Re: Creating Simple Neon - by PowerPC603 - 09.01.2014, 10:57
Re: Creating Simple Neon - by HolyScripter - 15.01.2014, 13:59

Forum Jump:


Users browsing this thread: 1 Guest(s)