Question About Skins
#1

Player Haves a skin he gows to x place ant writes something lets say /mum he's skin changes to lets say 200id ant then he comes back ant writes /mum agen how can i make that he gets back hes skin

Sorry if you couldn't understand me i don't talk good in english
Reply
#2

pawn Код:
//top of script
new Skin[MAX_PLAYERS] = {-1,...};

//in OnPlayerCommandText
if (!strcmp("/mum", cmdtext, true))
{
    if(Skin[playerid] == -1) Skin[playerid] = GetPlayerSkin(playerid), SetPlayerSkin(playerid, 200);
    else SetPlayerSkin(playerid, Skin[playerid]), Skin[playerid] = -1;
    return 1;
}
This is very untested...
Reply
#3

LoL i tested this in my gamemode..works very good and funny XD

Now im trying to understand what you did here and i have question
what does this say or do ? ;
Код:
= {-1,...};
Reply
#4

http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf
Search for "Progressive initiallers for arrays".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)