08.11.2010, 00:25
easy, you see what you have done, i will explane.
in callback you have typed that if player is admin and pickup id is enterhouse then teleport.
Else if not then send that command.
But when leaving you are about to check first if player is entering so probably its not then it takes that else, so yep he is not entering the house and it shows that message up next it checks if player is leaving yep, it is, hes job is done.
So to fix that, ou need to check if is admin in other line inside the pickup checking.
in callback you have typed that if player is admin and pickup id is enterhouse then teleport.
Else if not then send that command.
But when leaving you are about to check first if player is entering so probably its not then it takes that else, so yep he is not entering the house and it shows that message up next it checks if player is leaving yep, it is, hes job is done.
So to fix that, ou need to check if is admin in other line inside the pickup checking.
pawn Код:
if(pickupablalbalbal)
{
if(isadmin)
{
// the things should do
}
else return SendClientMessage(... );
}