GTA Közösség - A magyar GTA fórum
San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: ]_NeeD_[ - 2011. augusztus 17. - 17:01:37
-
Üdv hogy tudom azt megoldani hogy:
PL: elteleportálok /derby -re és kapjak egy autót (id: 504)
:D Elõre is köszi :D
-
[pawn]new derbycar;[/pawn]
[pawn]
if (strcmp(\"/derby\", cmdtext, true) == 0)
{
new Float:X, Float:Y, Float:Z;
SetPlayerPos(playerid,-1362.9822,932.8149,1036.1683);
SetPlayerInterior(playerid,15);
GetPlayerPos(playerid, X, Y, Z);
new derbycar = CreateVehicle(504,-1362.9845,932.8092,1036.2017,9.1040,45,29,10);
PutPlayerInVehicle(playerid, derbycar, 0);
return 1;
}[/pawn]
-
[pawn]new derbycar;[/pawn]
[pawn]
if (strcmp(\"/derby\", cmdtext, true) == 0)
{
new Float:X, Float:Y, Float:Z;
SetPlayerPos(playerid,-1362.9822,932.8149,1036.1683);
SetPlayerInterior(playerid,15);
GetPlayerPos(playerid, X, Y, Z);
new derbycar = CreateVehicle(504,-1362.9845,932.8092,1036.2017,9.1040,45,29,10);
PutPlayerInVehicle(playerid, derbycar, 0);
return 1;
}[/pawn]
Egyszerûbben:
[pawn]
if(!strcmp(\"/derby\", cmdtext, true))
{
new Float: ppos[3];
SetPlayerPos(playerid, -1362.9822, 932.8149, 1036.1683);
SetPlayerInterior(playerid, 15);
GetPlayerPos(playerid, ppos[0], ppos[1], ppos[2]);
new derbycar = CreateVehicle(504, -1362.9845, 932.8092, 1036.2017, 9.1040, 45, 29, 10);
PutPlayerInVehicle(playerid, derbycar, 0);
return 1;
}[/pawn]
-
Köszi ment a [ + ] Mind a Kettõtõknek :D
Zárok