Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!strcmp(cmdtext, "/cone", true))
- {
- if(IsPlayerConnected(playerid)) //mude para qualquer situa��o (situa��o 1)
- {
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, 0xFF0000AA, "Voc� tem que estar fora do carro!");
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- 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...
- SendClientMessage(playerid, 0xFFFFFFAA, "Cone :)");
- } else {
- SendClientMessage(playerid, 0xFF0000AA, "Voc� n�o est� conectado! o.O"); //muda a mensagem, para a situa��o 1 (acima)
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment