08.01.2013, 21:23
Really sweet
You don't need to login as RCON admin to use the command. Are you sure you've loaded it correctly? The commands are, /vspawner & /skinchange
|
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256+1];
new idx;
if(!IsPlayerAdmin(playerid)) return 0;//Need login as rcon admin.
cmd = strtok(cmdtext, idx);
if(strcmp("/vspawner", cmd, true) == 0)
{
// If there was a previously created selection menu, destroy it
DestroySelectionMenu(playerid);
SetPVarInt(playerid, "vspawner_active", 1);
//SetPVarInt(playerid, "vspawner_page", 0); // will reset the page back to the first
CreateSelectionMenu(playerid);
SelectTextDraw(playerid, 0xACCBF1FF);
return 1;
}
return 0;
}