toribio

toribio

Sep 9th, 2008
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. if(!strcmp(cmdtext, "/cone", true))
  2. {
  3.     if(IsPlayerConnected(playerid)) //mude para qualquer situa��o (situa��o 1)
  4.     {
  5.         if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, 0xFF0000AA, "Voc� tem que estar fora do carro!");
  6.         new Float:X, Float:Y, Float:Z;
  7.         GetPlayerPos(playerid, X, Y, Z);
  8.         CreateObject(1238, X, Y, Z-0.5, 0.0, 0.0, 0.0); //-0.5 no Z (altura) pois ele cria um pouco acima do ch�o...
  9.         SendClientMessage(playerid, 0xFFFFFFAA, "Cone :)");
  10.     } else {
  11.         SendClientMessage(playerid, 0xFF0000AA, "Voc� n�o est� conectado! o.O"); //muda a mensagem, para a situa��o 1 (acima)
  12.     }
  13.     return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment