save skin
#1

I want to save players skin . When i write a command /maketerro put the terro skin and when i write /makecounter put the police skin. When player die and has terro or police skin put the older skin.
Reply
#2

nobady ?
Reply
#3

Explain it more
pawn Код:
new save[MAX_PLAYERS];
if (!strcmp("/maketerror,cmdtext,true,9))
{
    save[playerid] = GetPlayerSkin(playerid);
    SetPlayerSkin(playerid, TERORSKIN);//replace
    }

if (!strcmp("
/makecounter",cmdtext,true,9))
{
    save[playerid] = GetPlayerSkin(playerid);
    SetPlayerSkin(playerid, POLICESKIN);//replace
    }
Reply
#4

when player death with policeskin or terroskin put the old skin
Reply
#5

Then, Under public OnPlayerSpawn add

SetPlayerSkin(playerid,save[playerid]);
Reply
#6

eroor

pawn Код:
C:\Users\Alex\Desktop\ftrp.pwn(7749) : error 017: undefined symbol "save"
C:\Users\Alex\Desktop\ftrp.pwn(7749) : warning 215: expression has no effect
C:\Users\Alex\Desktop\ftrp.pwn(7749) : error 001: expected token: ";", but found "]"
C:\Users\Alex\Desktop\ftrp.pwn(7749) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\ftrp.pwn(7749) : fatal error 107: too many error messages on one line
Reply
#7

Top of your GM

new save[MAX_PLAYERS];
Reply
#8

LastShadow, you sure have to make sure you read SAMP wiki documentation, you are trying to do something that requires knownledge atleast with variables, wich i'm seeing you don't know. If you want help you can ask for it, but just pieces, not all the work mate.
Reply
#9

then give me pieces
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)