SetPlayerShopName

From SA-MP Wiki

Jump to: navigation, search

SetPlayerShopName


Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.


Loads an interior script for a player (for example the ammunation menu).


Parameters:
(playerid, shopname[])
playeridThe ID of the player to load the interior script for.
shopname[]The shop script to load.


This function does not return a specific value.


Note: This function does not support casinos.


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

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools
In other languages