Szerző Téma: Teleport Hiba  (Megtekintve 733 alkalommal)

Teleport Hiba
« Dátum: 2018. május 09. - 13:42:45 »
0 Show voters
probálkoztam egy ilyen fajta teleport rendszer elkészitésevel de amikor be irom nem történik semmi ez miért van?
 

CMD:tele(playerid, params[])
{
if(pInfo[playerid][admin] >= 1)
{
    new Melyik[128],gid;
if(sscanf(params, \"s[128]\",gid, Melyik)) return   SendClientMessage(playerid, -1, \"{269BD9}Használat{FFFFFF}: /tele [Névrészlet/ID] [LP,EQ,BS,LB,FC]\");
if(gid == INVALID_PLAYER_ID) return Msg(playerid, COLOR_RED, \"Hibás ID.\");
if(!strcmp(params, \"EQ\")) {
if(!IsPlayerInAnyVehicle(gid))
   {
       SetPlayerInterior(gid, 0), SetPlayerVirtualWorld(gid, 0);
       SetPlayerPos(gid, -1417.4420,2610.0557,55.8359);
   }
   else
   {
       new VehID = GetPlayerVehicleID(gid);
       SetVehiclePos(VehID, -1417.4420,2610.0557,55.8359);
      PutPlayerInVehicle(gid, VehID, 0);
}
}
if(!strcmp(params, \"LP\")) {
if(!IsPlayerInAnyVehicle(gid))
   {
       SetPlayerInterior(gid, 0), SetPlayerVirtualWorld(gid, 0);
       SetPlayerPos(gid, -276.0455,2623.5129,62.9117);
   }
   else
   {
       new VehID = GetPlayerVehicleID(gid);
       SetVehiclePos(VehID, -276.0455,2623.5129,62.9117);
      PutPlayerInVehicle(gid, VehID, 0);
}
}
if(!strcmp(params, \"BS\")) {
if(!IsPlayerInAnyVehicle(gid))
   {
       SetPlayerInterior(gid, 0), SetPlayerVirtualWorld(gid, 0);
       SetPlayerPos(gid, -2475.1116,2272.1611,4.9844);
   }
   else
   {
       new VehID = GetPlayerVehicleID(gid);
       SetVehiclePos(VehID, -2475.1116,2272.1611,4.9844);
      PutPlayerInVehicle(gid, VehID, 0);
}
}
if(!strcmp(params, \"fc\")) {
if(!IsPlayerInAnyVehicle(gid))
   {
       SetPlayerInterior(gid, 0), SetPlayerVirtualWorld(gid, 0);
       SetPlayerPos(gid, -201.9520,979.1346,18.9887);
   }
   else
   {
       new VehID = GetPlayerVehicleID(gid);
       SetVehiclePos(VehID, -201.9520,979.1346,18.9887);
      PutPlayerInVehicle(gid, VehID, 0);
}
}
if(!strcmp(params, \"LB\")) {
if(!IsPlayerInAnyVehicle(gid))
   {
       SetPlayerInterior(gid, 0), SetPlayerVirtualWorld(gid, 0);
       SetPlayerPos(gid, -759.9937,1585.2500,26.9609);
   }
   else
   {
       new VehID = GetPlayerVehicleID(gid);
       SetVehiclePos(VehID, -759.9937,1585.2500,26.9609);
      PutPlayerInVehicle(gid, VehID, 0);
}
}
}else SendClientMessage(playerid, NARANCS, \"Nem vagy admin!\");
return 1;
}

 
 

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal