public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/enter", cmdtext, true, 6) == 0) { if(IsPlayerInRangeOfPoint(playerid,10,1480.9829,-1769.9470,18.795 ![]() { SetPlayerPos(playerid,388.8720,173.8050,1008.382 ![]() return 1; } //other enter commands go here if(player...... } if (strcmp("/exit", cmdtext, true, 6) == 0) { if(IsPlayerInRangeOfPoint(playerid,10,388.8720,173 .8050,1008.382 ![]() { SetPlayerPos(playerid,1480.9829,-1769.9470,18.795 ![]() return 1; } //other exit commands go here if(player...... } } |
warning 209: function "zcmd_OnPlayerCommandText" should return a value |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,1480.9829,-1769.9470,18.795)
{
SetPlayerPos(playerid,388.8720,173.8050,1008.382 ;
return 1;
} //other enter commands go here if(player......
}
if (strcmp("/exit", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,388.8720,173 .8050,1008.382)
{
SetPlayerPos(playerid,1480.9829,-1769.9470,18.795;
return 1;
} //other exit commands go here if(player......
}
return 1;
}
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,10,1480.9829,-1769.9470,18.795)
{
SetPlayerPos(playerid,388.8720,173.8050,1008.382 ;
return 1;
} //other enter commands go here if(player......
return 1;
}
CMD:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,10,388.8720,173 .8050,1008.382)
{
SetPlayerPos(playerid,1480.9829,-1769.9470,18.795;
return 1;
} //other exit commands go here if(player......
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}