if(strcmp(cmd,"/chercher", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pHumain] == 0) { if(PlayerInfo[playerid][pForce] != PlayerInfo[playerid][pMforce]) { if(restric[playerid] == 0) { if(PlayerToPoint(50.0, playerid, -1936.7203,648.8932,46.5625)) { new rand; rand = random(10); switch(rand) { case 0,1: { format(string, sizeof(string),"%s Ramasse un antidote",Name); PlayerInfo[playerid][pForce] += 1; ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); PlayerInfo[playerid][pAntidote] += 1; restric[playerid] = 1; ApplyAnimation(playerid, "BOMBER","BOM_Plant",4.1,0,1,1,1,1); SetTimerEx("restrit", 20000, 0, "d", playerid); return 1; } case 2,3,4,5,6,7,8,9: { format(string, sizeof(string),"%s Cherche partout en panique mais ne trouve rien",Name); ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("restrit", 20000, 0, "d", playerid); restric[playerid] = 1; ApplyAnimation(playerid, "BOMBER","BOM_Plant",4.1,0,1,1,1,1); return 1; } } } else if(PlayerToPoint(20.0, playerid, -2183.5596,991.7842,80.0000)) { new rand; rand = random(6); switch(rand) { case 0, 1: { format(string, sizeof(string),"%s Ramasse une Radio",Name); PlayerInfo[playerid][pForce] += 1; ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); PlayerInfo[playerid][Radio] += 1; restric[playerid] = 1; ApplyAnimation(playerid, "BOMBER","BOM_Plant",4.1,0,1,1,1,1); SetTimerEx("restrit", 20000, 0, "d", playerid); return 1; } case 2,3,4,5: { format(string, sizeof(string),"%s Cherche partout en panique mais ne trouve rien",Name); ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("restrit", 20000, 0, "d", playerid); restric[playerid] = 1; ApplyAnimation(playerid, "BOMBER","BOM_Plant",4.1,0,1,1,1,1); return 1; } } } |
|