Function SetPlayerShopName loads or unloads an interior script for a player (for example the ammunation menu).
Function SetPlayerShopName was added in 0.3a and will not work in earlier versions!
This function does not support casino scripts.

(playerid, shopname[])
int playerid The ID of the player to load the interior script for.
string shopname The shop script to load. Leave blank ("") to unload scripts.

Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute. This means the player specified does not exist.

public OnPlayerCommandText(playerid, cmdtext[])
    if(!strcmp("/enter", cmdtext))
        SetPlayerInterior(playerid, 5);
        SetPlayerPos(playerid, 372.5565, -131.3607, 1001.4922);
        SendClientMessage(playerid,0xFFFFFFFF,"Welcome to Pizza Stack!");
        return 1;
    return 0;

Related Functions
The following functions may be useful, as they are related to this function in one way or another.