Help me please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me please (
/showthread.php?tid=325935)
Help me please -
Alexy_Dramon - 15.03.2012
Hello guys can you give me a code for /SkyDive
for Rcon Admin please?
Re: Help me please -
Max_Coldheart - 15.03.2012
pawn Код:
CMD:SkyDive(playerid, params[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y+150, Z);
SendClientMessage(playerid, -1, "Have fun!");
return 1;
}
Requires ZCMD
Re: Help me please -
antonio112 - 15.03.2012
Actually, this is what you asked for:
pawn Код:
CMD:SkyDive(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new Float:Pos[3];;
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2] + 1000);
SendClientMessage(playerid, -1, "Skydiving ...");
return 1;
}
}
Re: Help me please -
Alexy_Dramon - 15.03.2012
how i'm Using it with Normal CMD?
cuz i don't use ZCMD

sorry for Stupid Question i'm new scripter
Re: Help me please -
Max_Coldheart - 15.03.2012
Nah, this is the right:
pawn Код:
CMD:SkyDive(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2] + 1000);
SendClientMessage(playerid, -1, "Skydiving ...");
return 1;
}
}
You had error in yours.
Download zcmd.inc and on top of your script add
Download zcmd.inc and on top of your script add
[pawn
Re: Help me please -
seanny - 15.03.2012
pawn Код:
if(strcmp(cmd, "/skydive", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2] + 1000);
return 1;
}
}
Re: Help me please -
Alexy_Dramon - 15.03.2012
wow ty working good
Re: Help me please -
Leo Karls - 23.04.2012
OW , thanks ... I was searching for this too..