#1

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

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

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.
Reply
#4

i want to get skin 294 and minigun when i introduce RCON
Reply
#5

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

it doesn't work alot of errors
Reply
#7

Show us the errors.
Reply
#8

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.
Reply
#9

Oh c'mon, and the line please.
Reply
#10

{
SendClientMessage(playerid,-1,"You Must Be Logged In As An RCON Admin To Use This Skin.");
return 0;
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)