Deploy cone
#1

Hello, I've been trying to script this with no success. lol
So basically when a player does /cone
a traffic cone is created on their feet.
Reply
#2

Like this?

pawn Код:
CMD:cone(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X,Y,Z);
        CreateObject(1238, X, Y, Z, 0, 0, 0, 0);
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
Like this?

pawn Код:
CMD:cone(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X,Y,Z);
        CreateObject(1238, X, Y, Z, 0, 0, 0, 0);
    }
    return 1;
}
Exactly how it should be. But when creating the cone, your going to need to lower the z cord because the cone will be in the middle of the players body if not lowered. And a way to check all the cones that have been created, so you can easily create a removal system.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)