16.10.2014, 15:47
I am just learning to script pawn. I was trying to make a house with a Mad Dog Interior. The command ' /enter ' is alright. But when I ' /exit ' nothing happens. Please do help me
Thanks in advance!
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/enter", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2807.9045,-1176.4122,25.3834))
{
SetPlayerPos(playerid, 1267.663208,-781.323242,1091.906250);
SetPlayerInterior(playerid, 5);
}
return 1;
}
if(!strcmp(cmdtext, "/exit", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1267.663208,-781.323242,1091.906250))
{
SetPlayerPos(playerid, 2807.9045,-1176.4122,25.3834);
SetPlayerInterior(playerid, 0);
}
return 1;
}
return 0;
}



