• Welcome to Vice City Multiplayer.
 

[PAWNO] Commands and Class selection...

Started by ClaN_Tai, February 05, 2010, 06:28:32 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ClaN_Tai

I got following propblems:

  • Class-Selection
Whenever I use "AddPlayerClass();" there will no skin shown on
class selection. I am a bit confused bout that problem as I cannot find
any explanation.

  • Commands
Could anyone tell me how they should be scripted? I got no freaking
idea if I use "strcmp" it does not work either. Does I have to
care about any specific thing that is different to SA:MP PAWNO?

-TriX-

-to add or edit a class a class
 AddPlayerClassEx(COLORID,SKINID,x,y,z,angle,wep-id,wep-ammo,wep2-id,wep3-ammo,wep4-id,wep4-ammo);

*coords x,y,z and angle are included when you save a location with /s

-about strcmd
else if (strcmp(cmd, "!mycommand", true) == 0)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) {
           //do something here insert an event for this cmd
   SetPlayerPos(playerid, 495.7786,-83.4285,10.0299);
           SendClientMessage(playerid, COLOR_GREEN, "Hello this is a text!!!");
           //now i have insert setplayerpos and u will be teleported to the coords(malibu)
}
return 1;
}

;)


www.life-urban.co.cc

ClaN_Tai

Thanks but this is used like...

/c !mycommand

any way to make commands like...

/mycommand ?

thijn



-TriX-

you can do only /c mycommand and not /mycommand (that is only for client cmds) zorry  :-\


www.life-urban.co.cc

[AoD]NC

* [AoD]NC thinks that there must be a new VCMP FAQ because this is the 10th time, that someone ask about / commands...

Boss

Quote from: [AoD]NC on February 07, 2010, 11:57:02 AM
* [AoD]NC thinks that there must be a new VCMP FAQ because this is the 10th time, that someone ask about / commands...
http://tdhclan.ru/wiki/index.php/Commands

[AoD]NC

Put the link on this forum and pin it, because nubs dont know about this wiki :].

Boss


ClaN_Tai

To be truth there is still much missing in all VC:MP wikis that exists...

Boss

Quote from: ClaN_Tai on February 10, 2010, 07:58:43 PM
To be truth there is still much missing in all VC:MP wikis that exists...
You could always fill them yourself. Or at least tell what's missing.