Locked vehicle
#6

Код:
if(IsKeyJustDown(KEY_SECONDARY_ATTACK, newkeys, oldkeys)) {
	    if(playerVariables[playerid][pTutorial] >= 5)
	        return firstPlayerSpawn(playerid);

        if(playerVariables[playerid][pTutorial] == 1) {
            playerVariables[playerid][pSkin] = GetPlayerSkin(playerid);

			SendClientMessage(playerid, COLOR_YELLOW, "Great. You've selected your clothes/skin.");

            playerVariables[playerid][pTutorial] = 2;

			ShowPlayerDialog(playerid, DIALOG_GENDER_SELECTION, DIALOG_STYLE_MSGBOX, "SERVER: Gender Selection", "What sex/gender is your character?", "Male", "Female");

            TextDrawHideForPlayer(playerid, textdrawVariables[2]);
			return 1;
		}
		foreach(Player, x) {
		new Float: vPos[4]; // x, y, z + z angle
		GetVehiclePos(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]);
		IsPlayerInRangeOfPoint(playerid,5,vPos[0], vPos[1], vPos[2]);
		if(playerVariables[x][pCarLock] == 1)
		{
		SendClientMessage(playerid,COLOR_RED,"This vehicle is locked!");
		}
		return 1;
		}
forget the tutorial shit its from the foreach(player part
Reply


Messages In This Thread
Locked vehicle - by a!DaN)_)-) - 17.05.2012, 00:03
Re: Locked vehicle - by Pizzy - 17.05.2012, 00:05
Re: Locked vehicle - by a!DaN)_)-) - 17.05.2012, 00:06
Re: Locked vehicle - by a!DaN)_)-) - 17.05.2012, 00:30
Re: Locked vehicle - by Jonny5 - 17.05.2012, 01:12
Re: Locked vehicle - by a!DaN)_)-) - 17.05.2012, 01:21

Forum Jump:


Users browsing this thread: 3 Guest(s)