Little Little Help here.!
#1

First thing:

How I can make a textdraw like this one:

http://i1007.photobucket.com/albums/.../sa-mp-429.png

But that the text say: Welcome To CoD:SaMp.
Btw How I can make it so: OnPlayerConnect show up this message:
Welcome to CoD:SaMp Server!


Second Thing:

Command /get:


I have a report system which opens a dialog box, if I add at the last GetPlayer it'll be the case 8, So If I Press it get the player to me:


pawn Код:
case 8:
                {
               
                     new Float:x, Float:y, Float:z; GetPlayerPos( playerid, x, y, z ); return SetPlayerPos( id, x, y, z );
               
                }
pawn Код:
../include/admincommands.inc.pwn(915) : error 017: undefined symbol "id"
../include/admincommands.inc.pwn(958) : error 017: undefined symbol "params"
3rd:

How to make a zcmd Cmd ( /time )?
Reply
#2

#Bump!
Reply
#3

Post the code.
Reply
#4

Dude, Its a simple zcmd command for dialogs, how toma make it or any other dcmd or anything for the dialog boxes.
Reply
#5

https://sampwiki.blast.hk/wiki/GameTextForPlayer


What line is params?


Example command for 'id' error.

pawn Код:
COMMAND:get(playerid, params[])
{
    new id;
    if(IsPlayerConnected(id))
    {
        if(IsPlayerAdmin(playerid))
        {
            if(!sscanf(params, "ui", id))
            {
                new string[64];
                new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                new Float:x, Float:y, Float:z;  GetPlayerPos(playerid,x,y,z); SetPlayerInterior(id,GetPlayerInterior(playerid));
                GetPlayerName(playerid, name, sizeof(name));
                GetPlayerName(id, PlayerName, sizeof(PlayerName));
                format(string, sizeof(string), "Adminstrator %s has teleported you to himself/herself.", name);
                SendClientMessage(id, 0xffff00aa, string);
                format(string, sizeof(string), "Player %s has been teleported to you.", PlayerName);
                SendClientMessage(playerid, 0xffff00AA, string);
                SetPlayerVirtualWorld(id,GetPlayerVirtualWorld(playerid));
                SetPlayerPos(id,x+2,y,z);
                return 1;
            }
            else return SendClientMessage(playerid, 0xffff00aa, "Usage:- /Get (PlayerID/PartOfName).");
        }
        else return SendClientMessage(playerid, 0xffff00aa, "You are not an Adminstrator.");
    }
    else return SendClientMessage(playerid, 0xffff00aa, "Player is not connected or The ID is incorrect.");
}
Get an idea from this. /Get Cmd.

pawn Код:
public OnPlayerConnect(playerid)
{
    new string[50];
    format(string, sizeof(string), "~b~Welcome to Cod SA-MP");
    GameTextForPlayer(playerid, string, 3000, 4);
    return 1;
}
And alex how time zcmd?

I mean how u want?

Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)