Help me please
#1

Hello guys can you give me a code for /SkyDive
for Rcon Admin please?
Reply
#2

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
Reply
#3

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;
    }
}
Reply
#4

how i'm Using it with Normal CMD?
cuz i don't use ZCMD sorry for Stupid Question i'm new scripter
Reply
#5

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
pawn Код:
#include <zcmd>
Download zcmd.inc and on top of your script add
[pawn
Reply
#6

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;
    }
}
Reply
#7

wow ty working good
Reply
#8

OW , thanks ... I was searching for this too..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)