Szerző Téma: Sanchez Spawn /rs  (Megtekintve 604 alkalommal)

Sanchez Spawn /rs
« Dátum: 2012. Június 09. - 11:55:54 »
0 Show voters
Spawnoljon egy \"sanchez\"-t az \"/rs\" parancsra.
Bármelyik játékos használhatja! \"GetPlayerMoney\" - 10000 legyen, ha lehetséges!
Elõre is Köszönöm szépen a segítséget!
Üdv: wpkchase

Sanchez Spawn /rs
« Válasz #1 Dátum: 2012. Június 09. - 12:11:27 »
0 Show voters
if(strcmp(cmdtext, \"/rs\", true) == 0)
{
new Float:PosX, FloatPosY, Float:PosZ, Float:Angle;
GetPlayerFacingAngle(playerid, Angle);
GetPlayerPos(playerid, PosX, PosY, PosZ);
CreateVehicle(468, PosX, PosY, PosZ, Angle, 0, 0, 1000);
GivePlayerMoney(playerid, -10000);
return 1;
}

 
Nem teszteltem
« Utoljára szerkesztve: 2012. Június 09. - 12:14:50 írta gergo107 »

Nem elérhető Rupert

  • 2301
    • Profil megtekintése
Sanchez Spawn /rs
« Válasz #2 Dátum: 2012. Június 09. - 12:13:20 »
0 Show voters
Idézetet írta: gergo107 date=1339236687\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"22598\" data-ipsquote-contentclass=\"forums_Topic
Nem teszteltem
 
Nem is mûködne.
Tessék:
 
CMD:rs(playerid, params[])
{
if(GetPlayerMoney(playerid) < 1000)
{
    SendClientMessage(playerid, -1, \"Nincs elég pénzed(10000$) a Sanchezra!\");
}
else
{
    new Float:x, Float:y, Float:z, Float:rot;
GivePlayerMoney(playerid, -10000);
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, rot);
CreateVehicle(468, x+1, y+1, z+1, rot, -1, -1, 1);
}
return 1;
}

Sanchez Spawn /rs
« Válasz #3 Dátum: 2012. Június 09. - 12:14:22 »
0 Show voters
Köszi, csak most gyorsan összedobtam nem is pawn-ba csintam :D

Sanchez Spawn /rs
« Válasz #4 Dátum: 2012. Június 09. - 15:00:11 »
0 Show voters
Köszönöm szépen Srácok! :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal