Jump to content

Admin car


Psychedelic

Recommended Posts

new adminauto;

 

adminauto = AddStaticVehicle(411,.......);

 

a do OnPlayerEnterVehicle

 

if(!IsPlayerAdmin(playerid)

{

TogglePlayerControllable(playerid, 0);

TogglePlayerControllable(playerid, 1);

SendClientMessage(playerid,COLOR_***,"Nesi RCON Admin ty k***t skurweny");

}

Link to comment
Share on other sites

mělo by to vypadat takhle?

#include  //include pro to nejzákadnější
#include  //nějaký hemzi o sořadnicích
//pragmy
#pragma tabsize 0 //aby to nepsalo loose identition
//barvy
#define BARVA_BÍLÁ 0xFFFFFFAA //toto je nadefinovaná barva bílá s informacemi jak bude vypadat 0xFFFFFFAA
//newy
new adminauto;
adminauto = AddStaticVehicle(411,.......);

public OnPlayerEnterVehicle if(!IsPlayerAdmin(playerid)
{
TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid,COLOR_BÍLÁ,"Toto vozidlo je jen pro admini /admins");
}

Link to comment
Share on other sites

rofl ty si to nerob takto ako ja robim ale robim si to priamo uz do hotovych publicov v pawne mg a ak mas to ceske pawno tak si stihani normalne

Link to comment
Share on other sites

Dopadlo to takhle

C:\DOCUME~1\PATRIK~1.MSH\Plocha\GTA\HedShy.pwn(9) : error 010: invalid function or declaration
C:\DOCUME~1\PATRIK~1.MSH\Plocha\GTA\HedShy.pwn(11) : error 001: expected token: ";", but found "if"
C:\DOCUME~1\PATRIK~1.MSH\Plocha\GTA\HedShy.pwn(17) : warning 203: symbol is never used: "adminauto"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...