09.10.2012, 09:55
Well I have noticed that when I teleport to a player that is inside a tuning garage it teleports me inside. How do I disable teleporting inside a tuning garage and check if player is in a tuning garage?
pawn Код:
CMD:go(playerid, params[])
{
new ID;//creates a new something idk what we call it :P but it is defined later on or used in something this 1 is used in next line
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Usage: /go [PlayerID/PartofName]");//checks if you have written something after /goto if no it sends error
if(!IsPlayerConnected(ID) || ID == playerid) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> This player is Offline or it is Yourself");
}