Bl1zzard, например так: В начало:
Code
new havevipspawn[MAX_PLAYERS];
В OnPlayerConnect:
Code
havevipspawn[playerid]=0;
В OnPlayerSpawn:
Code
if(havevipspawn[playerid]=1)
{
SetPlayerPos(playerid,x,y,z);
}
В OnPlayerCommandText:
Code
if(!strcmp(cmdtext, "/vipspawn", true))
{
if(havevipspawn[playerid] == 0)
{
SendClientMessage(playerid,0xFF0000AA," Вы преобрели VIP-спавн за $5000!");
havevipspawn[playerid]=1;
GivePlayerMoney(playerid,-5000);
}
else
{
SendClientMessage(playerid,0xFF0000AA," Вы отменили VIP-спавн!");
havevipspawn[playerid]=0;
}
return 1;
}
В OnGameModeExit:
Code
for(new i=0; i<MAX_PLAYERS; i++)
{
havevipspawn[i]=0;
}