Advertisement
Parix

Untitled

Nov 1st, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3. if (strcmp("/armi", cmdtext, true, 10) == 0)
  4. {
  5. GivePlayerWeapon(playerid, 24, 9999); // GivePlayerWeapon: Per givare le armi ||playerid: Il player che fa il comando. ||24 รจ l'id della desert eagle || 9999 sono le munizioni
  6. return 1;
  7. }
  8.  
  9. if (strcmp("/Skin", cmdtext, true, 10) == 0)
  10. {
  11. SetPlayerSkin(playerid, 100); //SetPlayerSkin: Setta la skin || playerid: Il player che fa il comando. || 100 รจ l'id della skin
  12. return 1;
  13. }
  14.  
  15. if (strcmp("/Skin", cmdtext, true, 10) == 0)
  16. {
  17. SetPlayerPos(playerid, x,y,z); //SetPlayerPos: Setta la posizione al player||playerid: Il player che fa il comando ||x,y,z sono le coordinate che dovrai prendere con /save
  18. return 1;
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement