Jump to content

Question

2 answers to this question

Recommended Posts

Posted

E simplu :D uite cum : foloseste asta:

if(strcmp(cmd, "/carlock", true) == 0)
    {
		new keycar = PlayerInfo[playerid][pPcarkey]; //aici citeste sa afle id-ul masini care e trecut in contul jucatorului
    	if(IsPlayerConnected(playerid))
        {
			if(keycar != 999)
			{
				new locked[256];
				locked = strtok(cmdtext, idx);
				for(new i = 0; i < MAX_PLAYERS; i++)
				{
					if (IsPlayerConnected(i))
					{
						SetVehicleParamsForPlayer(keycar,i,0,1);
					}
				}
				format(string, sizeof(string), "~w~Car~n~~r~Locked");
				GameTextForPlayer(playerid, string, 10000, 3);
				CarInfo[keycar][cLock] = 1;
				OnPropUpdate();
				return 1;
			}
			else { SendClientMessage(playerid,COLOR_WHITE,"** You do not own a car! **"); return 1; }
		}
    }

header.png

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.