RCON - 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: RCON (
/showthread.php?tid=288973)
RCON -
viosteaua98 - 09.10.2011
Hey
I want to make a command using rcon like
When i join [no rcon] there are skin 294 and 298 if i want to choose it, it will not let me [no rcon] i choose i die and automatly go back to main choose skin
when i introduced rcon to spawn with skin 294 and with minigun or something else..
can someone help me please
Re: RCON -
DaRkAnGeL[NBK] - 09.10.2011
so you basically want when an admin logs in on RCON you want the skin to change and weapons given ? if so that simples XD
Re: RCON -
Backwardsman97 - 09.10.2011
I think he means he wants certain skins only to be available to rcon admins. You can just do a check under OnPlayerRequestSpawn. See if they're trying to spawn with one of those skins without rcon and return 0.
Re: RCON -
viosteaua98 - 10.10.2011
i want to get skin 294 and minigun when i introduce RCON
Re: RCON -
grand.Theft.Otto - 10.10.2011
Try this:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 294)
{
if(IsPlayerAdmin(playerid))
{
SpawnPlayer(playerid); // not sure if this is needed or not
SetPlayerSkin(playerid,294);
GivePlayerWeapon(playerid,38,999999);
return 1;
}
else
{
SendClientMessage(playerid,-1,"You Must Be Logged In As An RCON Admin To Use This Skin.");
return 0;
}
}
return 1;
}
Re: RCON -
viosteaua98 - 10.10.2011
it doesn't work alot of errors
Re: RCON -
Jafet_Macario - 10.10.2011
Show us the errors.
Re: RCON -
viosteaua98 - 10.10.2011
D:\Jocuri\Gta san andreas\Server\filterscripts\Minigun.pwn(154) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: RCON -
Jafet_Macario - 10.10.2011
Oh c'mon, and the line please.
Re: RCON -
viosteaua98 - 10.10.2011
{
SendClientMessage(playerid,-1,"You Must Be Logged In As An RCON Admin To Use This Skin.");
return 0;
}
}