17.05.2012, 01:21
Код:
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; }