if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){
if(!strcmp("/lift", cmd)) { //Works with or without the !
SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
}
}
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391) || IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){ //HERE!!
if(!strcmp("/lift", cmd)) { //Works with or without the !
SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
}
}
|
Originally Posted by ♣ ⓐⓢⓢ
if your gate have special points like
O| | |O Then you could use if(IsPlayerInRangeOfPoint(...) || IsPlayerInRangeOfPoint(...)) if you just want that you can use the command on both sides ------ | | | | | | | | | ------ then you could use if(IsPlayerInArea(...)) |

|
Originally Posted by adsy
similar to what ive been doing by the sounds of it
http://forum.sa-mp.com/index.php?top...4916#msg844916 Код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){
if(!strcmp("/lift", cmd)) { //Works with or without the !
SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
}
}
Код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391) || IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){ //HERE!!
if(!strcmp("/lift", cmd)) { //Works with or without the !
SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
}
}
that means or |

|
Originally Posted by adsy
have you tried from both locations?
|
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 2425.4812,-2100.0002,13.5469, 3.0);
SetPlayerCheckpoint(playerid, 2423.1638,-2078.8130,13.5538, 3.0);
return 1;
}
if(!strcmp("/test", cmd)) {
SetPlayerPos(playerid,-2419.3364,-2179.7725,34.0391);
}
|
Originally Posted by adsy
similar to what ive been doing by the sounds of it
http://forum.sa-mp.com/index.php?top...4916#msg844916 Код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){
if(!strcmp("/lift", cmd)) { //Works with or without the !
SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
}
}
Код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391) || IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){ //HERE!!
if(!strcmp("/lift", cmd)) { //Works with or without the !
SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
}
}
that means or |
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){
if(!strcmp("/lift", cmd)) { //Works with or without the !
if(!strcmp("/lift", cmd)) //Works with or without the !
if(strcmp(cmdtext, "/lift", true, 5) == 0)
|
//Works with or without the ! |
if(strcmp("/lift", cmd))