Skins and regular players
#1

Hey Members of SA-MP. I have 2 questions that i need help with, for now ..

1.) How do i set skins for factions? For example, you get invited to faction 6, which would make you rank 1, giving you a skin. Then rank 2 gives another skin and so on. How do i make it do this?


2.) Since im using Ravens, an amazing script from cuervo, i kinda want to extend the regular players. Im using v2.7, and im making 2 ownable cars instead of 1, like he did for 2.8. But i want to make it like if your a regular player level 2 or so you can own 3 cars instead of 2, giving them a "reward" sorta. I just want to know how to do this, not only for cars but maybe businesses also. 2 instead of 1.


Side note: Thanks cuervo for releasing a good gm , and thanks in advance to whoever helps me.


-Anthony
Reply
#2

public OnPlayerRequestSpawn(playerid)
{
new classid=GetPlayerSkin(playerid);
switch(classid)
{
case <skin id of rank 1>: if(Faction[playerid] != 6) { return 0; } else return 1;
}
}

Something like this

Return 0 to prevent player from spawning, return 1 to let him spawn
Reply
#3

^^ will test, thanks for very quick response.
Reply
#4

Quote:
Originally Posted by [DRD]Rodney
View Post
public OnPlayerRequestSpawn(playerid)
{
new classid=GetPlayerSkin(playerid);
switch(classid)
{
case <skin id of rank 1>: if(Faction[playerid] != 6) { return 0; } else return 1;
}
}

Something like this
Try using the [pawn] tag.

Quote:
Originally Posted by SA:MP Forum
This forum requires that you wait 120 seconds between posts. Please try again in 78 seconds.
*sigh*
Reply
#5

pawn Code:
wtf is [.pawn.]  lol
test

public OnPlayerRequestSpawn(playerid)
{
new classid=GetPlayerSkin(playerid);
switch(classid)
{
case <skin id of rank 1>: if(Faction[playerid] != 6) { return 0; } else return 1;
}
}
EDIT: ooh nice
Reply
#6

^^ Aztec, it doesnt really matter. also Rodney, how would i make it work for each rank 0.o
Reply
#7

What you mean?
Reply
#8

Quote:
Originally Posted by Anthony[Gl-RP]
View Post
^^ Aztec, it doesnt really matter. also Rodney, how would i make it work for each rank 0.o
I know it doesn't matter, just makes it look better.. Oh, and here you go.

pawn Code:
public OnPlayerRequestSpawn(playerid)
{
    new classid=GetPlayerSkin(playerid);
    switch(classid)
    {
        case SKINID:
        if(Faction[playerid] != 6 && Rank[playerid] != 1) //If their Faction isn't ID 6, and their rank is not 1, it will not work.
        {
            return 0;
        }
    }
}
Reply
#9

Then for more ranks i would add....
pawn Code:
case SKINID:
        if(Faction[playerid] != 6 && Rank[playerid] != 2)
        {
under

pawn Code:
case SKINID:
        if(Faction[playerid] != 6 && Rank[playerid] != 1) //If their Faction isn't ID 6, and their rank is not 1, it will not work.
        {

Correct?
Reply
#10

pawn Code:
public OnPlayerRequestSpawn(playerid)
{
    new classid=GetPlayerSkin(playerid);
    switch(classid)
    {
        case SKINID:
        if(Faction[playerid] != 6 && Rank[playerid] != 1)
        {
            return 0;
        }
        case SKINID2:
        if(Faction[playerid] != 6 && Rank[playerid] != 2)
        {
            return 0;
        }
    }
}
Reply
#11

Ah yes the return 0 . Thanks. Any ideas on my second question? Or my thrid which im asking now...

3.) How did cuervo make the "R" in the bottom right corner for game play?
Reply
#12

Quote:
Originally Posted by Anthony[Gl-RP]
Посмотреть сообщение
Ah yes the return 0 . Thanks. Any ideas on my second question? Or my thrid which im asking now...

3.) How did cuervo make the "R" in the bottom right corner for game play?
I'm figuring it's an Alt Code. ****** "Backwards R".
Reply
#13

I found this shit when i ******d it

Код:
Character encoding 	Case 	Binary 	Hexadecimal 	Octal 	Decimal
Unicode Я 	Capital 	0000010000101111 	042F 	2057 	1071
Small 	0000010001001111 	044F 	2117 	1103
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)