13.09.2015, 21:02
how to add a 24/7, binco, gym i cant do this how to do this help me please
enum e_Entrance {
Float:a_x, //Entrance x
Float:a_y, //Entrance y
Float:a_z, //Entrance z
Float:e_x, //Exit point x
Float:e_y, //Exit point y
Float:e_z, //Exit point z
e_pick,
e_int,
e_world,
e_text[32]
};
stock const Interiors[][e_Entrance] = {
{0.0,0.0,3.0, 50.0,0.0,0.0, 1239, 0, 0, "Test Interior"}
};
//Can use this with /enter or KeyCode
stock EnterInterior(playerid)
{
for(new i; i<sizeof(Interiors); i++) {
if(!IsPlayerInRangeOfPoint(playerid,2.0,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z])) continue;
SetPlayerPos(playerid,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);
SetPlayerInterior(playerid,Interiors[i][e_int]);
SetPlayerVirtualWorld(playerid,Interiors[i][e_world]);
GameTextForPlayer(playerid,Interiors[i][e_text],5000,5);
return 1;
}
return 0;
}
//OnGameModeInit
for(new i; i<sizeof(Interiors); i++) {
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z]);
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);
}
You can do this, by using an big Array like this:
PHP Code:
|
nice killer