Search Results
Use OnPlayerEnterVehicle.
You can stop the player from entering the vehicle if he's not doing the job like this:
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  ...
257
You can check Bone IDs here:
https://sampwiki.blast.hk/wiki/Bone_IDs
And model IDs stands for any object, you can browse them on some websites like Prineside.
113
Try this, maybe it does the trick for you.
PHP код:
CMD:tower(playerid,params[])
{
    new bool:objectz,tower,Float:x,Float:y,Float:z;
    if(objectz == false)
    {
     Â...
228
When does LastVehicle[playerid] becomes anything other than 0?
400
Sorry I missed the returns on your loop.
Always follow what Konstantinos said.
PHP код:
dcmd_gzinvisible(playerid,params[])
{
   #pragma unused params
   if(CanUseGangZ[playerid] == ...
400
Try this
PHP код:
dcmd_gzinvisible(playerid,params[]){   #pragma unused params   if(CanUseGangZ[playerid] == 0)   {     SendClientMessage(playerid,COLOR_ERROR,"[ERROR] You m...
400
Just have it shown only if the hidden variable is 0:
PHP код:
    if(pInfo[playerid][hidden] == 0){        format(word, sizeof(word), "["BLUE_E"UoS"WHITE_E"] "YELLOW_E"%s {%0...
102
Are you sure you used ShowPlayerDialog correctly?
If you could post the code here, please do.
197
Could you post your /help command?
294
You can create variables like
PHP код:
new Werewolf[MAX_PLAYERS], Vampire[MAX_PLAYERS];Â
Assign them to the player when they do a certain command or when they pick their class/skin afte...
185
Olб, й meu primeiro tutorial entгo peзo que tenham compreensгo e apontem qualquer falha ou explicaзгo que possa ter ficado difнcil de entender.
Longe de ser um assunto complexo, mas й algo qu...
207
Olб pessoal,
No momento possuo um servidor com host nos EUA mas venho tendo problemas com eles e com o atendimento oferecido.
Dei uma pesquisada e vi que o CarbonHost tambem possui servidores na amÐ...
191
Try this:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new KillStreak [MAX_PLAYERS];
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
{
if(GetPlayerWantedLe...
328
Make sure you clear the variables when players disconnect.
Example: Setting them all back to 0, so when someone else connects using that ID, it will all be fresh.
141
Anyone, please?
I have no idea how to get these values to save properly.
I tried to use "encode_" stuff found on another topic (https://sampforum.blast.hk/showthread.php?tid=358351) but still no succe...
179
Used it but still got this in my .ini:
Код:
Doors6 = 50331648
And the visual damage still isn't saved.
I'm using Yini.
179
Gave me two warnings:
Код:
warning 213: tag mismatch
warning 213: tag mismatch
The lines are:
Код:
FactionInfo[i][DmgDoors][veh] = door;
FactionInfo[i][DmgTires][veh] = tire;
I changed them to...
179