SA-MP Forums Archive
ZCMD thingy - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ZCMD thingy (/showthread.php?tid=424906)



ZCMD thingy - LeeXian99 - 24.03.2013

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;
    }



Re: ZCMD thingy - LarzI - 24.03.2013

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


Re: ZCMD thingy - vitorvlv - 24.03.2013

Nothing changes, are the same functions

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



Re: ZCMD thingy - LeeXian99 - 24.03.2013

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