Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public OnPlayerCommandText(playerid,cmdtext[])
  2. {
  3. if(!strcmp(cmdtext,"/objmat",true))
  4. {
  5. new Float:X, Float:Y, Float:Z;
  6. new myobject;
  7. GetPlayerPos(playerid, X, Y, Z);
  8. myobject = CreatePlayerObject(playerid, 19371, X, Y, Z+0.5, 0.0, 0.0, 0.0, 300.0);
  9. SetPlayerObjectMaterial(playerid, myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
  10. // Replaces the texture of our player-object with the texture of model 19341
  11. return 1;
  12. }
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement