08.02.2013, 16:48
Quote:
First !! I need a derby system, that when a player enters the derby, the limit is 4 (i have 4 cars) and if 4 are in the derby no-one else can join, the last on in the derby gets 10k and the cars will respawn. And it starts again.
Heres my zcmd : Code:
CMD:derby(playerid, params[]) { new str7[128], player8[MAX_PLAYER_NAME]; GetPlayerName(playerid, player8, sizeof(player8)); format(str7,sizeof(str7),"%s teleportis end derbysse [/derby]",player8); SendClientMessageToAll(COLOR_GREEN,str7); new rand = random(sizeof(D1Rand)); SetPlayerPos(playerid, D1Rand[rand][0], D1Rand[rand][1], D1Rand[rand][2]); SendClientMessage(playerid, COLOR_NGREEN,"Teleportisid end derbysse!"); ResetPlayerWeapons(playerid); nocmd[playerid] = 1; return 1; } |