06.04.2009, 03:12
/flip and /afk are very very easy you can find them with the search button.
heres better way for random spawn than that confusing array....
heres better way for random spawn than that confusing array....
Код:
if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, COLOR_ERROR, "You cannot teleport with a car");//optional return 1; } new dmrand = random(100); if(dmrand >=0 && dmrand <=50) { // 50/50 chance SetPlayerPos(playerid, yourcoords here); SetPlayerFacingAngle(playerid, angle here); SendClientMessageToAll(playerid, COLOR_RED, "A player has used /dm"); return 1; } if(dmrand >=51 && dmrand <=100) { SetPlayerPos(playerid, youotherdmrcoords here); SetPlayerFacingAngle(playerid, otherangle here); SendClientMessageToAll(playerid, COLOR_RED, "A player has used /dm"); return 1;