/paraforall
#1

Hey all, i wanna know how to make a command using Zcmd that will give all players parachute + only Lux admin, this check:

pawn Код:
if(!IsPlayerLuxAdminLevel(playerid, 1)) return //a client message..
Reply
#2

Sry for duble post, but i got another question:

How can i make a command like /dive and then the player would be teleport like 100 meters up in air but in same possition on the map
Reply
#3

pawn Код:
if(!IsPlayerLuxAdminLevel(playerid, 1)) return //a client message..
for(new i=0; i<GetMaxPlayers(); i++)
{
    if(IsPlayerConnected(i))
    {
        GivePlayerWeapon(i,  46, 1);
    }
}
that's the code for inside the cmd... I'm not familar with Zcmd so I can't do the rest
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/dive", cmdtext, true, 5) == 0)
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        SetPlayerPos(playerid, x, y, z+100);
        return 1;
    }
    return 0;
}
for the second question
Reply
#5

Wow thanks!

And yeah how can i make it like "Admin Markx has given para to all" but to other names please?
Reply
#6

np... I have to thank you you made me make my 500th msg... /me is gangsta now
Reply
#7

haha congrats, check out my post again, edited it

i got this:

undefined symbol "i"
Reply
#8

Did you forget the loop?
Did you change "i" to "all" or something? (In the loop)
Reply
#9

Quote:
Originally Posted by Markx
Посмотреть сообщение
Wow thanks!

And yeah how can i make it like "Admin Markx has given para to all" but to other names please?
pawn Код:
new string[ 128 ], pName[ 24 ];
GetPlayerName( playerid, pName, 24 );
format( string, sizeof string, "Admin %s has given all players a parachute", pName );
SendClientMessageToAll( COLOR, string );
Reply
#10

i replaced "i" with playerid, works now!

-Thanks all!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)