15.03.2012, 15:09
Hello guys can you give me a code for /SkyDive
for Rcon Admin please?
for Rcon Admin please?
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;
}
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;
}
}
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;
}
}
#include <zcmd>
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;
}
}