Jump to content
  • 0

Question

Posted

AM O PROBLEMA AM ADAUGAT INCA 1 SLOT PENTRU MASINILE PERSONALE DOAR CA NU SE INCUIE MASINILE

CAND DAU /V LOCK8 PARK NU AR FI MASINA CU TOATE K AM MODIFICAT "LOCK8" IN GM!

NU STIU CARE AR FI PROBLEMA!!

			else if(strcmp(x_nr,"lock8",true) == 0)
			{
			    new keycar = PlayerInfo[playerid][pPcarkey7];
				if(keycar != 999)
                {
                    new locked[256];
                    locked = strtok(cmdtext, idx);
                    if(CarInfo[skeycar][cLock] == 1)
                    {
                    	for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if (IsPlayerConnected(i))
							{
								SetVehicleParamsForPlayer(skeycar,i,0,0);
							}
						}
						format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked");
						GameTextForPlayer(playerid, string, 4000, 3);
						CarInfo[skeycar][cLock] = 0;
						OnPropUpdate();
						return 1;
					}
					else if(CarInfo[skeycar][cLock] == 0)
					{
					    for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if (IsPlayerConnected(i))
							{
								SetVehicleParamsForPlayer(skeycar,i,0,1);
							}
						}
						format(string, sizeof(string), "~w~Vehicle~n~~r~Locked");
						GameTextForPlayer(playerid, string, 4000, 3);
						CarInfo[skeycar][cLock] = 1;
						OnPropUpdate();
						return 1;
					}
                }

2 answers to this question

Recommended Posts

Posted

			    new keycar = PlayerInfo[playerid][pPcarkey7];
				if(keycar != 999)

La tine ti se inchide masina cu slot 7, inlocuieste cu 8.

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.