29.05.2012, 21:27
Aqui esta desculpe a mб indentaзгo tem que estar logado na rcon
PHP код:
//na public OnPlayerComandText
if(strcmp("/Respawn", cmdtext, true, 10) == 0){if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");ResetarCarros();return 1;}
//no fim do GM
stock ResetarCarros(){static bool:inVeh;for(new i; i < MAX_VEHICLES; i++ ){inVeh = false;for(new j; j < GetMaxPlayers(); j++ ){if(IsPlayerInVehicle( j, i ))inVeh = true;break;}if(!inVeh) SetVehicleToRespawn(i);}}