Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:gotocar(playerid, params[])
- {
- //
- //
- //
- //
- //
- if(PI[playerid][pABS] < 1) return Error(playerid, "Nisi ABS !");
- new kola;
- if(sscanf(params, "i", kola)) return Cmd(playerid, "/gotocar (car id)");
- new Float:cwx2,Float:cwy2,Float:cwz2;
- GetVehiclePos(kola, cwx2, cwy2, cwz2);
- if (GetPlayerState(playerid) == 2)
- {
- new carr = GetPlayerVehicleID(playerid);
- lz_SetVehiclePos(carr, cwx2, cwy2, cwz2);
- }
- else
- {
- lz_SetPlayerPos(playerid, cwx2, cwy2, cwz2);
- }
- for(new i = 0; i < MAX_VEHICLES; i++)
- {
- if(OwnableVozilo(kola))
- {
- SetPlayerVirtualWorld(kola, CI[i][cVW]);
- }
- }
- SCM(playerid, SIVA, ""COL_BE"[BE] {FFFFFF}Teleportovani ste.");
- SetPlayerInterior(playerid,0);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement