save skin - 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: save skin (
/showthread.php?tid=500331)
save skin -
TheLastShadow - 12.03.2014
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.
Re: save skin -
TheLastShadow - 13.03.2014
nobady ?
Re: save skin -
Matess - 13.03.2014
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
}
Re: save skin -
TheLastShadow - 13.03.2014
when player death with policeskin or terroskin put the old skin
Re: save skin -
rakshith122 - 13.03.2014
Then, Under public OnPlayerSpawn add
SetPlayerSkin(playerid,save[playerid]);
Re: save skin -
TheLastShadow - 13.03.2014
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
Re: save skin -
Matess - 13.03.2014
Top of your GM
new save[MAX_PLAYERS];
Re: save skin -
Ruben_Alonso - 13.03.2014
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.
Re: save skin -
TheLastShadow - 13.03.2014
then give me pieces