SA-MP Forums

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

Thread Tools Display Modes
Old 06/06/2010, 09:22 PM   #1
Little Clucker
Join Date: May 2010
Posts: 21
Reputation: 0
Default [HELP] Skin Changing and Skin Saving

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
Varna is offline  
Old 06/06/2010, 09:40 PM   #2
Shadow_'s Avatar
Join Date: Nov 2008
Location: Vatican City
Posts: 539
Reputation: 41
Default Re: [HELP] Skin Changing and Skin Saving

IsPlayerToPoint ( Search it )

Then make a command which updates your skin stat... ( if you dont have a stat make one)
Shadow_ is offline  
Old 06/06/2010, 11:52 PM   #3
Join Date: Jul 2008
Location: Canada
Posts: 1,031
Reputation: 84
Default Re: [HELP] Skin Changing and Skin Saving

Oh damn!
coole210 is offline  
Old 07/06/2010, 01:48 PM   #4
Little Clucker
Join Date: May 2010
Posts: 21
Reputation: 0
Default Re: [HELP] Skin Changing and Skin Saving

Okay , i tryed to make a system myself but i got a problem .
The script i have written is :
  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);
	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 !
Varna is offline  

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
Changing skin on factions Help Archive 3 01/08/2010 07:20 AM
Skin saving bartje01 Help Archive 3 03/02/2010 04:11 PM
Saving Skin retart441 Help Archive 6 09/01/2010 10:34 PM
My skin keep changing without reason addysnow1 Help Archive 0 20/12/2009 01:56 PM
Saving Skin Hot Help Archive 2 27/05/2009 12:05 AM

All times are GMT. The time now is 03:54 AM.

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