[Tutorial] Custom Damaging(with bodyparts) && Forbidding Weapons(0.3z)
#8

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Now, we will want to make sure both players are connected, to prevent any bugs. We will use IsPlayerConnected, by doing the following:

Код:
if(!IsPlayerConnected(playerid)) return 0;
if(!IsPlayerConnected(issuerid)) return 0;
Of course they're connected... The callback wouldn't be being called if they weren't. This is like using IsPlayerConnected under OnPlayerConnect.

Also you should really use [ pawn] tags not [ code ].
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)