[HELP] Skin Changing and Skin Saving - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Skin Changing and Skin Saving (
/showthread.php?tid=153042)
[HELP] Skin Changing and Skin Saving -
Varna - 06.06.2010
I am making a RPG server .
However, i created a clothing shop so i want to know how to make PAWNo script which checks if the player is inside the clothing shop (interior)
and when you type /skin [skinID] to change your skin and saves it.
Sorry my english is not the best .
Thank you
Re: [HELP] Skin Changing and Skin Saving -
Shadow_ - 06.06.2010
IsPlayerToPoint ( Search it )
Then make a command which updates your skin stat... ( if you dont have a stat make one)
Re: [HELP] Skin Changing and Skin Saving -
coole210 - 06.06.2010
Oh damn!
http://forum.sa-mp.com/index.php?topic=82650.0
Re: [HELP] Skin Changing and Skin Saving -
Varna - 07.06.2010
Okay , i tryed to make a system myself but i got a problem .
The script i have written is :
Code:
new cmd[256];
if(strcmp(cmd, "/skin", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 161.37, -96.61, 1001.80) == 0 ) return SendClientMessage(playerid, COLOR_RED, "You are not in clothing shop !");
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 161.37, -96.61, 1001.80) == 1 )
{
new idx;
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /skin [SKIN]");
return 1;
}
new level;
level = strval(tmp);
SetPlayerSkin(playerid, level);
return 1;
}
return 1;
}
Its under "public OnPlayerCommandText(playerid, cmdtext[])" of course.
I do not get errors on compiling, but i have problem In Game. So, the problem is that when i get in the server, it returns me
"You are not in clothing shop" on every command i type (/login and etc.).
Can someone help me to fix that ?

And if its possible PM me the edited/working script or post in the thread + tell me where was the problem :P
Thank you !
PS: I am noob in scripting, but notice i started to learn to script some days ago !