Szerző Téma: Teleport,tuning,fegyver  (Megtekintve 862 alkalommal)

Nem elérhető killse

  • 161
    • Profil megtekintése
Teleport,tuning,fegyver
« Dátum: 2011. október 09. - 19:14:05 »
0 Show voters
Sziasztok:D
Nem tudok teleportot csinálni mert apcresel.. azt szertném hogy a 3 legjobb tuningolóshoz legyen tele..Ezekell a parancsokkal:/tuning1 /tuning2 /tuning3 :D
Megköszöném
Jah és hol van az a script hogy a fegyókat rád teszi mármint az npc-re :D

Teleport,tuning,fegyver
« Válasz #1 Dátum: 2011. október 09. - 19:24:59 »
0 Show voters
[pawn]CMD:tuning1(playerid,params[])
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
SetPlayerInterior(playerid,0);
{
   if(State!=PLAYER_STATE_DRIVER)
   {
      SetPlayerPos(playerid,-2708.7493,217.0125,4);
   }
   else if(IsPlayerInVehicle(playerid, cartype) == 1)
   {
      SetVehiclePos(cartype,-2708.7493,217.0125,4);
      SetVehicleZAngle(cartype,89.2900);
   }
   else
   {
      SetPlayerPos(playerid,-2708.7493,217.0125,4);
   }
}
return 1;
}
CMD:tuning2(playerid,params[])
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
SetPlayerInterior(playerid,0);
{
   if(State!=PLAYER_STATE_DRIVER)
   {
      SetPlayerPos(playerid,2388.2261,1032.7090,11);
   }
   else if(IsPlayerInVehicle(playerid, cartype) == 1)
   {
      SetVehiclePos(cartype,2388.2261,1032.7090,11);
      SetVehicleZAngle(cartype,6.1335);
   }
   else
   {
      SetPlayerPos(playerid,2388.2261,1032.7090,11);
   }
}
return 1;
}
CMD:tuning3(playerid,params[])
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
SetPlayerInterior(playerid,0);
{
   if(State!=PLAYER_STATE_DRIVER)
   {
      SetPlayerPos(playerid,2645.1208,-2018.3188,13.3512);
   }
   else if(IsPlayerInVehicle(playerid, cartype) == 1)
   {
      SetVehiclePos(cartype,2645.1208,-2018.3188,13.3512);
      SetVehicleZAngle(cartype,182.8156);
   }
   else
   {
      SetPlayerPos(playerid,2645.1208,-2018.3188,13.3512);
   }
}
return 1;
}[/pawn]
A fegyveres dologban nemvok otthon.

Nem elérhető killse

  • 161
    • Profil megtekintése
Teleport,tuning,fegyver
« Válasz #2 Dátum: 2011. október 09. - 19:36:35 »
0 Show voters
[pawn]C:\\Users\\Rendszergazda\\Desktop\\lsd.pwn(47) : warning 203: symbol is never used: \"tuning1\"
C:\\Users\\Rendszergazda\\Desktop\\lsd.pwn(47 -- 69) : warning 203: symbol is never used: \"tuning2\"
C:\\Users\\Rendszergazda\\Desktop\\lsd.pwn(47 -- 69) : warning 203: symbol is never used: \"tuning3\"
C:\\Users\\Rendszergazda\\Desktop\\lsd.pwn(47 -- 69) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
1 Error.[/pawn]

Teleport,tuning,fegyver
« Válasz #3 Dátum: 2011. október 09. - 20:27:38 »
0 Show voters
strcmp-vel vannak ezekszerint a parancsaid... ez esetben:
[pawn]if(strcmp(cmdtext, \"/tuning1\", true) == 0)
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
SetPlayerInterior(playerid,0);
{
   if(State!=PLAYER_STATE_DRIVER)
   {
      SetPlayerPos(playerid,-2708.7493,217.0125,4);
   }
   else if(IsPlayerInVehicle(playerid, cartype) == 1)
   {
      SetVehiclePos(cartype,-2708.7493,217.0125,4);
      SetVehicleZAngle(cartype,89.2900);
   }
   else
   {
      SetPlayerPos(playerid,-2708.7493,217.0125,4);
   }
}
return 1;
}
if(strcmp(cmdtext, \"/tuning2\", true) == 0)
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
SetPlayerInterior(playerid,0);
{
   if(State!=PLAYER_STATE_DRIVER)
   {
      SetPlayerPos(playerid,2388.2261,1032.7090,11);
   }
   else if(IsPlayerInVehicle(playerid, cartype) == 1)
   {
      SetVehiclePos(cartype,2388.2261,1032.7090,11);
      SetVehicleZAngle(cartype,6.1335);
   }
   else
   {
      SetPlayerPos(playerid,2388.2261,1032.7090,11);
   }
}
return 1;
}
if(strcmp(cmdtext, \"/tuning3\", true) == 0)
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
SetPlayerInterior(playerid,0);
{
   if(State!=PLAYER_STATE_DRIVER)
   {
      SetPlayerPos(playerid,2645.1208,-2018.3188,13.3512);
   }
   else if(IsPlayerInVehicle(playerid, cartype) == 1)
   {
      SetVehiclePos(cartype,2645.1208,-2018.3188,13.3512);
      SetVehicleZAngle(cartype,182.8156);
   }
   else
   {
      SetPlayerPos(playerid,2645.1208,-2018.3188,13.3512);
   }
}
return 1;
}[/pawn]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal