Code
new Float:RandomSpawnGrove[4][4] = {
{2225.7131,-1149.6176,1025.7969,95.7851},
{2246.0417,-1190.8867,1029.7969,25.5977},
{2191.7427,-1189.8916,1029.7969,261.2032},
{2193.6560,-1142.0361,1029.7969,178.7957}
};
if(GetPlayerColor(playerid) == COLOR_GREEN)
{
new rand = random(sizeof(RandomSpawnGrove));
AddPlayerClass(106,RandomSpawnGrove[rand][0],RandomSpawnGrove[rand][1],RandomSpawnGrove[rand][2],RandomSpawnGrove[rand][3],0,0,0,0,0,0);
}
I didnot get any error when compile when i died and my color green it didnot spawn in the random spawn
Whats wrong can anyone help me