ZCMD thingy
#1

Ah, I have a simple problem, but I don't know how to script with ZCMD.

How to change this to ZCMD?
pawn Код:
if (strcmp("/ls", cmdtext, true, 10) == 0)
    {
        if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new iVeh = GetPlayerVehicleID(playerid);
            SetVehiclePos(iVeh,2508.7432,-1673.0253,13.3804);
            SetVehicleZAngle(iVeh, 0);
        }
        else
        {
        SetPlayerPos(playerid,2526.9399,-1667.6604,15.1689);
        }
        SendClientMessage(playerid, 0x00FF00, "Welcome to Los Santos.");
        new name[MAX_PLAYER_NAME+1], string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format (string, sizeof(string), "[TP]: %s has teleported to /ls.", name);
        SendClientMessageToAll(0x0000BBAA, string);
        return 1;
    }
Reply
#2

http://forum.sa-mp.com/showthread.ph...ht=zcmd+strcmp
Reply
#3

Nothing changes, are the same functions

pawn Код:
CMD:ls(playerid,params[])
{
//function
return 1;
}
Reply
#4

Thank you guys. You guys are great! I'm just a newbie scripter. :d
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)