13.12.2012, 13:19
pawn Код:
if(current == spawnprof) {
switch(row) {
case 0: // Spawn Prof
{
new aname[MAX_PLAYER_NAME], dFile[60];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(dFile, sizeof(dFile), "PASTA_CONTAS", aname);
TogglePlayerControllable(playerid, 1);
SpawnPlayer(playerid);
SetSpawnInfo(playerid, 0, dini_Int(dFile, "Skin"), dini_Int(dFile, "CasaX"), dini_Int(dFile, "CasaY"), dini_Int(dFile, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
TogglePlayerControllable(playerid, 1);
}
case 1: // Cancelar
{
Logarprof(playerid);
TogglePlayerControllable(playerid, 1);
HideMenuForPlayer(spawnprof, playerid);
}
}
}