06.06.2011, 04:33
I've got a /clothes and /skin command, and if a player inputs either of them they disconnect, the server doesn't crash, just them.
Here is what the command uses:
It detects if their in a clothing store and if not it tells them to go to one, I'm almost positive it has something to do with that.
Here is what the command uses:
Код:
public IsAtClothShop(playerid) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid,25.0,286.148986,-40.644397,1001.515625) || IsPlayerInRangeOfPoint(playerid,25.0,286.800994,-82.547599,1001.515625)) {//Binco & Suburban return 1; } else if(IsPlayerInRangeOfPoint(playerid,296.919982,-108.071998,1001.515625) || IsPlayerInRangeOfPoint(playerid,50.0,314.820983,-141.431991,999.601562)) {//Zip & Victim return 1; } } return 0; }