Need little help - 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)
+--- Thread: Need little help (
/showthread.php?tid=292026)
Need little help -
Artie_Scorpion - 22.10.2011
Hi, i need to know how to use this function to this this command?
Function:
Код:
if(GetPlayerSkin(playerid) == 27)
{
Код:
else return SendClientMessage(playerid, 0xFF000000, "You can't enter...");
Command (maybie it's function):
Код:
if(PRESSED(16))
{
if(IsPlayerInRangeOfPoint(playerid,5,MyCords,MyCords,MyCords))
{
SetPlayerPos(playerid,MyCords,MyCords,MyCords);
SetPlayerInterior(playerid,My interior...);
}
if(IsPlayerInRangeOfPoint(playerid,5,MyCords,MyCords,MyCords))
{
SetPlayerPos(playerid,MyCords,MyCords,MyCords);
SetPlayerInterior(playerid,My interior...);
}
}
Re: Need little help -
AeroBlast - 22.10.2011
EDIT:Fixed
pawn Код:
if(PRESSED(16))
{
if(IsPlayerInRangeOfPoint(playerid,5,MyCords,MyCords,MyCords))
{
if(GetPlayerSkin(playerid) == 27)
{
SetPlayerPos(playerid,MyCords,MyCords,MyCords);
SetPlayerInterior(playerid,My interior...);
}
else SendClientMessage(playerid,0xFF0000FF,"You cant enter...");
}
if(IsPlayerInRangeOfPoint(playerid,5,MyCords,MyCords,MyCords))
{
if(GetPlayerSkin(playerid) == 27)
{
SetPlayerPos(playerid,MyCords,MyCords,MyCords);
SetPlayerInterior(playerid,My interior...);
}
else SendClientMessage(playerid,0xFF0000FF,"You cant enter...");
}
}