Jump to content

RusKo69

Membru
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by RusKo69

  1. http://wiki.sa-mp.com/wiki/GivePlayerWeapon
  2. CMD:closestcar(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, AdminOnly); if(IsPlayerInAnyVehicle(playerid))return SCM(playerid, COLOR_GREY, "Esti deja intr-un vehicul."); new thacar = GetClosestVehicle(playerid), string[150], sendername[25]; PutPlayerInVehicle(playerid, thacar, 0); SCM(playerid, COLOR_GREY,"Ai fost teleportat in cel mai apropiat vehicul."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "AdmCmd: Admin %s s-a teleportat in masina ID %d cu ajutorul comenzi /closestcar.",sendername, GetPlayerVehicleID(playerid)); SendAdminMessage(COLOR_LOGS, string, 1); Adminlog(string); return 1; } CMD:up(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { new Float:slx, Float:sly, Float:slz; GetPlayerPos(playerid, slx, sly, slz); SetPlayerPosEx(playerid, slx, sly, slz+5.0); } return 1; }
  3. Am schimbat interiorul la o factiune, cand ma spawnez imi arata interiorul ok dar cand intru eu in HQ mi l da pe cel vechi.. Video: for(new i = 1; i < 20; i++) { if(PlayerToPoint(2.0, playerid, DynamicFactions[extX], DynamicFactions[extY], DynamicFactions[extZ])) { if(PlayerInfo[playerid][pMember] == i) EnterFaction(playerid, i); } } for(new i = 1; i < 20; i++) { if(PlayerToPoint(2.0, playerid, DynamicFactions[fcX], DynamicFactions[fcY], DynamicFactions[fcZ])) { if(DynamicFactions[fVW] == GetPlayerVirtualWorld(playerid) && DynamicFactions[fInterior] == GetPlayerInterior(playerid)) ExitFaction(playerid, i); } } function EnterFaction(playerid, fid) { SetPlayerPosEx(playerid, DynamicFactions[fid][fcX], DynamicFactions[fid][fcY], DynamicFactions[fid][fcZ]); SetPlayerInterior(playerid, DynamicFactions[fid][fInterior]); SetPlayerVirtualWorld(playerid, DynamicFactions[fid][fVW]); InHQ[playerid] = fid; return 1; } function ExitFaction(playerid, fid) { SetPlayerPosEx(playerid, DynamicFactions[fid][extX], DynamicFactions[fid][extY], DynamicFactions[fid][extZ]); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); InHQ[playerid] = 0; return 1; }
×
×
  • 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.