SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/04/2016, 04:37 AM   #1
Godey
Big Clucker
 
Godey's Avatar
 
Join Date: Jun 2015
Location: India
Posts: 150
Reputation: 6
Default Skin spawn

Hey!
I got a problem.. Suppose I made a /skin command which acts like
Code:
SetPVarInt(playerid,"SaveTheSkin",1);
and under OnPlayerSpawn I added:
Code:
if(GetPVarInt(playerid,"SaveTheSkin") == 1)
{
    SetPlayerSkin(playerid, pInfo[playerid][Skin]);
}
Why when in class selection it does not allow me to use "<<" or ">>" just one skin?
Unregistered users can use only Skin ID 0, why?

Please help..
Thanks
__________________
My works:
[1] Find the Pizza Box!
Note: I didn't upload my works

Code:
OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, -1, "Welcome to my server and now goodbye!");
    Kick(playerid);
}
Godey is offline   Reply With Quote
Old 12/04/2016, 09:43 AM   #2
introzen
Gangsta
 
introzen's Avatar
 
Join Date: Aug 2008
Posts: 788
Reputation: 34
Default Re: Skin spawn

You've not added the classes. https://wiki.sa-mp.com/wiki/AddPlayerClass
__________________
"No problem can be solved from the same level of consciousness that created it." - Albert Einstein
introzen is offline   Reply With Quote
Old 12/04/2016, 12:19 PM   #3
Godey
Big Clucker
 
Godey's Avatar
 
Join Date: Jun 2015
Location: India
Posts: 150
Reputation: 6
Default Re: Skin spawn

I added all 299 of them (not 311, still outdated :P)

Is there other place where I have to put the GetPlayerVarInt rather OnPlayerSpawn?

See if I enter like an un-registered person I can now use all the 0-299 skins
If I'm registered/un-registered and I use /skin <id> it doesn't save when I relog,
when I click spawn, it gives me the selected skin instead of replacing with the skin I set in /skin
__________________
My works:
[1] Find the Pizza Box!
Note: I didn't upload my works

Code:
OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, -1, "Welcome to my server and now goodbye!");
    Kick(playerid);
}
Godey is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
skin help - always spawn as cj skin kbalor Scripting Help 5 10/12/2014 08:23 PM
[Ajuda] Skin por SPAWN SONEKA Português/Portuguese 1 01/05/2014 10:39 AM
Get same skin when spawn. Configuration Scripting Help 3 17/07/2013 07:26 AM
Spawn Skin InsaneESN Help Archive 4 11/06/2010 11:33 PM
Spawn car for skin Faust Help Archive 2 24/02/2009 08:10 PM


All times are GMT. The time now is 01:28 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.