Need little help
#1

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...); 
    }
}
Reply
#2

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...");
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)