15.08.2012, 20:52
pawn Код:
enum SInfo
{
Float:SpawnX,
Float:SpawnY,
Float:SpawnZ
}
new SpawnInfo[MAX_DEFAULT_SPAWNS][SInfo];
pawn Код:
new pName[24];
new Float: parameter;
GetPlayerName(playerid, pName, sizeof(pName));
new SpawnID = udb_UserInt(pName, "Spawn");
if(coord == 'X')
parameter = SpawnInfo[SpawnID][SpawnX];
else if(coord == 'Y')
parameter = SpawnInfo[SpawnID][SpawnY];
else if(coord == 'Z')
parameter = SpawnInfo[SpawnID][SpawnZ];
return parameter;