Help please.
#1

Hey guys, I'm looking for a code that when a player tries to spawn with a specific skin, it will say Error: This skin is for admins only...

For example...


-Player logs on to server
-Chooses an admin skin
-When they click Spawn, it will say ''Error: This skin is for admins only''



And when a admins logs on...


-Admin logs on to server
-Chooses an admin skin
-Server sends a message to them saying ''You have spawned with an admin skin!''


Please help me
Reply
#2

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    if(classid == 3 && !IsPlayerAdmin(playerid))
    {
             SendClientMessage(playerid,COLOR_GREEN,"This skin is only for admins!");
             return 0;
        }
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)