SA-MP Forums Archive
Skins - 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: Skins (/showthread.php?tid=210708)



Skins - NINER - 13.01.2011

Hi. Can i do that only a special skin do certain things (actions) ? Sorry for my bad english.


Re: Skins - blackwave - 13.01.2011

Example ( a command, which need the skin ID 167 [chicken] )
pawn Код:
if(!strcmp(cmdtext, "/need", true))
{
    if(GetPlayerSkin(playerid) != 167) return false; // If player skin isn't 167, nothing happens !  |    !=  means 'different'
    else return // Else from that first condition, will return functions
    return 1;
}



AW: Skins - NINER - 13.01.2011

thank you, it works


AW: Skins - NINER - 13.01.2011

mhm problem:
Код:
	if(strcmp("/tor1o",cmdtext,true,10)==0)
	{
 	if(GetPlayerSkin(playerid) != 280) return false; 
 	if(GetPlayerSkin(playerid) != 281) return false;
 	if(GetPlayerSkin(playerid) != 282) return false;
 	if(GetPlayerSkin(playerid) != 283) return false;
 	if(GetPlayerSkin(playerid) != 284) return false;
 	if(GetPlayerSkin(playerid) != 285) return false; 
 	if(GetPlayerSkin(playerid) != 286) return false; 
 	if(GetPlayerSkin(playerid) != 287) return false; 
 	if(GetPlayerSkin(playerid) != 288) return false;
 	
        else return 
	MoveObject(tGate,2294.1184082031, 2502.7514648438, 2.3897671699524,2.0);
	return 1;
	}
...but when i have these skins, nothing happens, too


Re: Skins - Mikkel_Pedersen - 13.01.2011

Код:
	if(strcmp("/tor1o",cmdtext,true,10)==0)
	{
 		if(GetPlayerSkin(playerid) >= 280 && GetPlayerSkin(playerid) <= 288)
 		{
			MoveObject(tGate,2294.1184082031, 2502.7514648438, 2.3897671699524,2.0);
			return 1;
		}
	}



AW: Skins - NINER - 13.01.2011

kk thx