22.12.2009, 23:46
Quote:
|
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 |
Example:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){
if(!strcmp("/lift", cmd)) { //Works with or without the !
pawn Код:
if(!strcmp("/lift", cmd)) //Works with or without the !
pawn Код:
if(strcmp(cmdtext, "/lift", true, 5) == 0)
Oh wait
Quote:
|
//Works with or without the ! |
pawn Код:
if(strcmp("/lift", cmd))
Im sorry if Im being harsh but some people on this forum actually need the code right or they will not understand so we dont need noobs like you giving false information.
http://wiki.sa-mp.com
kthx

