[Ajuda] Player Check point
#1

bem, eu fis um Checkpoint so que da erro na parte

public OnPlayerEnterCheckpoint(playerid)
{
ChangeVehicleColor(vehicleid, -1, -1);
return 1;
}



da o erro: C:\Documents and Settings\eu \Meus documentos\SAMP 0.3 Server\gamemodes\meugm.pwn(1495) : error 017: undefined symbol "vehicleid"

e outra coisa

if (strcmp("/moto", cmdtext, true, 10) == 0)
{
new Float, Float:y, Float:z, Float:a;
new vehicle = CreateVehicle(522, x, y, z, a, -1, -1, -1);
PutPlayerInVehicle(playerid, vehicle, 0);
return 1;
}


como fas pra quando eu fazer outra /bike ela sumir? e tb quando eu morro e me desconecto (pq c nao fica uma moto no server do nada )
Reply
#2

o 1є vc tem k definir qual й o pick up:

no topo do GM:

pawn Код:
new pickup1;
no ongamemodeinit:

pawn Код:
pickup1 = CreatePickup(playerid,tal tal);
e no onplayerpickuppickup:

pawn Код:
if(pickupic = pickup1)
{
new vehicleid = GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid,1,1);
}
Reply
#3

Quote:
Originally Posted by andmeida10
o 1є vc tem k definir qual й o pick up:

no topo do GM:

pawn Код:
new pickup1;
no ongamemodeinit:

pawn Код:
pickup1 = CreatePickup(playerid,tal tal);
e no onplayerpickuppickup:

pawn Код:
if(pickupic = pickup1)
{
new vehicleid = GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid,1,1);
}
o mesmo erro que dava com o Check point

assim eu quero criar uma pickup ou checkpoint que quando o carro passar por ela mudar a cor (repintar)
tipo um pay n' spray
Reply
#4

pickup para puder ser no carro, acho que й o 14, usa o search
Reply
#5

Quote:
Originally Posted by andmeida10
pickup para puder ser no carro, acho que й o 14, usa o search
й sim
14 Pickupable, but only when in a vehicle. Falls through objects made with CreateObject, etc.
vlw
Reply
#6

Quote:
Originally Posted by V4mpiroDoidao
Quote:
Originally Posted by andmeida10
pickup para puder ser no carro, acho que й o 14, usa o search
й sim
14 Pickupable, but only when in a vehicle. Falls through objects made with CreateObject, etc.
vlw
De nada
Reply


Forum Jump:


Users browsing this thread: