Spawn pickup + text label
#1

So I am trying to make a script where i spawn a pickup and a text label but its not working..

pawn Код:
CMD:spawnreqhouse(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
       new Float:x,Float:y,Float:z;
       CreatePickup(1239, 23, x,y,z);
       CreateDynamic3DTextLabel("To request a house at \nthis location, use /requesthouse",COLOR_RED, Float:x,Float:y,Float:z+0.5,4.0);
       return 1;
    }
    return 1;
}
Whats wrong?
Reply
#2

Try this

Quote:

CMDpawnreqhouse(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new Float,Float:y,Float:z;
CreatePickup(1239, 23, x,y,z);
CreateDynamic3DTextLabel(COLOR_RED, "To request a house at \nthis location, use /requesthouse",Float,Float:y,Float:z+0.5,4.0);
return 1;
}
return 1;
}

Reply
#3

Quote:
Originally Posted by DavidSparks
Посмотреть сообщение
So I am trying to make a script where i spawn a pickup and a text label but its not working..

pawn Код:
CMD:spawnreqhouse(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
       new Float:x,Float:y,Float:z;
       CreatePickup(1239, 23, x,y,z);
       CreateDynamic3DTextLabel("To request a house at \nthis location, use /requesthouse",COLOR_RED, Float:x,Float:y,Float:z+0.5,4.0);
       return 1;
    }
    return 1;
}
Whats wrong?
try this

pawn Код:
CMD:spawnreqhouse(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
       new Float:x,Float:y,Float:z;
      GetPlayerPos(playerid,x,y,z);
       CreatePickup(1239, 23, x,y,z);
       CreateDynamic3DTextLabel("To request a house at \nthis location, use /requesthouse",COLOR_RED,x,y,z+0.5,4.0);
       return 1;
    }
    return 1;
}
Reply
#4

Lol,, I forgot about it totally! goodjob MIblal
Do like he said
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)