/paraforall - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /paraforall (
/showthread.php?tid=236924)
/paraforall -
Markx - 08.03.2011
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..
Re: /paraforall -
Markx - 08.03.2011
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
Re: /paraforall -
Sascha - 08.03.2011
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
Re: /paraforall -
Sascha - 08.03.2011
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
Re: /paraforall -
Markx - 08.03.2011
Wow thanks!
And yeah how can i make it like "Admin Markx has given para to all" but to other names please?
Re: /paraforall -
Sascha - 08.03.2011
np... I have to thank you

you made me make my 500th msg... /me is gangsta now
Re: /paraforall -
Markx - 08.03.2011
haha congrats, check out my post again, edited it
i got this:
undefined symbol "i"
Re: /paraforall -
alpha500delta - 08.03.2011
Did you forget the loop?
Did you change "i" to "all" or something? (In the loop)
Re: /paraforall -
Mean - 08.03.2011
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 );
Re: /paraforall -
Markx - 08.03.2011
i replaced "i" with playerid, works now!
-Thanks all!